#312E81

Indigo

#312E81Indigo

Luminance

0.042

Category

Blue

Type

Dark

Best On

#FFFFFF

Color Codes

All color formats for your project

HEX

HEX
#312E81
No #
312E81

RGB

RGB
rgb(49, 46, 129)
Values
R:49 G:46 B:129

HSL

HSL
hsl(242, 47%, 34%)
Values
H:242° S:47% L:34%

HSV / HSB

HSV
hsv(242, 64%, 51%)
Values
H:242° S:64% V:51%

CMYK

CMYK
cmyk(62%, 64%, 0%, 49%)
Values
C:62 M:64 Y:0 K:49

LAB

LAB
lab(24, 28, -47)
Values
L:24 a:28 b:-47

OKLCH

OKLCH
oklch(35.9% 0.135 278.7)
Values
L:35.9% C:0.135 H:278.7°

Code Formats

CSS
color: #312E81;
Swift
UIColor(red: 0.192, green: 0.180, blue: 0.506, alpha: 1.0)
Kotlin
Color(0xFF312E81)
Flutter
Color(0xFF312E81)
Android
#FF312E81

Contrast Analysis

WCAG compliance with grayscale colors

On White

11.42:1

AAA

On Black

1.84:1

Fail

Grayscale Contrast

Aa

0%

1.8

Fail
Aa

10%

1.5

Fail
Aa

20%

1.1

Fail
Aa

30%

1.4

Fail
Aa

40%

2.0

Fail
Aa

50%

2.9

Fail
Aa

60%

4.0

AA-large
Aa

70%

5.4

AA
Aa

80%

7.1

AAA
Aa

90%

9.1

AAA
Aa

100%

11.4

AAA

Best Grayscale Contrast

#FFFFFF with ratio 11.42:1

Aa

Color Harmonies

Harmonious color combinations

complementary

Two colors opposite on the color wheel (180°)

split-complementary

Base color + two colors adjacent to its complement

triadic

Three colors evenly spaced (120° apart)

tetradic

Four colors evenly spaced (90° apart)

analogous

Three colors adjacent on the color wheel (30° apart)

Color Variations

Tints, shades, tones, and full scale

Color Scale (50-900)

50

100

200

300

400

500

600

700

800

900

Tints (Lighter)

Shades (Darker)

Tones (Desaturated)

Gradients (OKLCH)

Primary

90°
CSS
linear-gradient(90deg, #5653C1 0%, #24225E 100%)
OKLCH
linear-gradient(90deg, oklch(50.7% 0.167 279.8) 0%, oklch(29.4% 0.104 279.4) 100%)
Stops
0%
100%

Vibrant

135°
CSS
linear-gradient(135deg, #2F2BB6 0%, #211DAF 100%)
OKLCH
linear-gradient(135deg, oklch(40.5% 0.208 273.3) 0%, oklch(37.3% 0.215 270.4) 100%)
Stops
0%
100%

Complementary

90°
CSS
linear-gradient(90deg, #312E81 0%, #7D7F2E 100%)
OKLCH
linear-gradient(90deg, oklch(35.9% 0.135 278.7) 0%, oklch(57.8% 0.103 110.6) 100%)
Stops
0%
100%

Analogous

90°
CSS
linear-gradient(90deg, #2E547F 0%, #312E81 50%, #592E7F 100%)
OKLCH
linear-gradient(90deg, oklch(43.9% 0.084 252.8) 0%, oklch(35.9% 0.135 278.7) 50%, oklch(39.8% 0.134 305.6) 100%)
Stops
0%
50%
100%

Sunset

90°
CSS
linear-gradient(90deg, #F6CE55 0%, #EE6C2B 50%, #E6193C 100%)
OKLCH
linear-gradient(90deg, oklch(86.4% 0.144 90.6) 0%, oklch(68.0% 0.177 43.8) 50%, oklch(59.1% 0.228 21.2) 100%)
Stops
0%
50%
100%

Ocean

135°
CSS
linear-gradient(135deg, #19A1E6 0%, #22C3B6 50%, #47D1A3 100%)
OKLCH
linear-gradient(135deg, oklch(67.5% 0.146 238.9) 0%, oklch(73.8% 0.124 186.2) 50%, oklch(77.5% 0.136 166.9) 100%)
Stops
0%
50%
100%

Dark Mode

180°
CSS
linear-gradient(180deg, #312E7F 0%, #191825 100%)
OKLCH
linear-gradient(180deg, oklch(35.7% 0.133 278.9) 0%, oklch(21.7% 0.025 287.6) 100%)
Stops
0%
100%

Radial Glow

Radial
CSS
radial-gradient(circle, #4642B8 0%, #2B2970 100%)
OKLCH
radial-gradient(circle, oklch(45.8% 0.180 278.1) 0%, oklch(32.9% 0.119 278.9) 100%)
Stops
0%
100%

💡 About OKLCH Gradients

OKLCH (Oklch Color Space) provides perceptually uniform gradients with better color transitions than traditional RGB/HSL gradients. The format is oklch(L% C H) where L = Lightness (0-100%), C = Chroma (0-0.4), H = Hue (0-360°).

Generate Full Palette

Create a complete brand palette from this color with primary, secondary, accent, and neutral scales.

View Palette