#312FAF#312FAF
#312FAF is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.5% C 0.195 H 274.0°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).
Color values
| HEX | #312FAF |
|---|---|
| RGB | rgb(49, 47, 175) |
| HSL | hsl(241, 58%, 44%) |
| HSV | hsv(241, 73%, 69%) |
| CMYK | cmyk(72%, 73.1%, 0%, 31.4%) |
| CIE-LAB | lab(28.85, 42.86, -67.25) |
| CIE-LCH | lch(28.85, 79.75, 302.51°) |
| OKLab | oklab(40.49% 0.0137 -0.1945) |
| OKLCH | oklch(40.49% 0.195 274) |
| XYZ | xyz(10.0184, 5.7802, 41.1368) |
| Luminance | 0.0578 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.39
Indigo Blue
#3A18B1
ΔE00 4.65
Ocean Blue
#4F42B5
ΔE00 5.91
True Blue
#010FCC
ΔE00 6.05
Blue With A Hint Of Purple
#533CC6
ΔE00 6.15
Blue Blue
#2242C7
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312FAF #ADAF2F
analogous
#2F6DAF #312FAF #712FAF
triadic
#312FAF #AF312F #2FAF31
tetradic
#312FAF #AF2F6D #ADAF2F #2FAF71
square
#312FAF #AF2F6D #ADAF2F #2FAF71
split-complementary
#312FAF #AF712F #6DAF2F
monochromatic
#16154F #23227F #312FAF #4E4CCF #7E7CDC
Accessibility & contrast
On white
9.74
#312FAF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#312FAF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312FAF
9.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312FAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312FAF | 1.00 | 9.74 | 2.16 | 9.74 |
| #FFFFFF | 9.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#003EAD
Tritanopia (blue-blind)
#00536C
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #312faf; /* rgb */ color: rgb(49, 47, 175); /* oklch */ color: oklch(40.5% 0.195 274.0);
Tailwind
colors: {
custom: {
50: '#7c69c8',
500: '#312faf',
950: '#000000',
},
}SCSS
$custom: #312faf; $custom-light: #7c69c8; $custom-dark: #000000;
JSON
{
"hex": "#312faf",
"rgb": {
"r": 49,
"g": 47,
"b": 175
},
"hsl": {
"h": 240.938,
"s": 57.658,
"l": 43.529
},
"oklch": {
"l": 0.40485,
"c": 0.19499,
"h": 274
},
"luminance": 0.05781
}Semantic roles & 50–950 ramp
primary
#312FAF
secondary
#C3C475
accent
#E147DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82