#2F31B1#2F31B1
#2F31B1 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.9% C 0.196 H 272.9°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).
Color values
| HEX | #2F31B1 |
|---|---|
| RGB | rgb(47, 49, 177) |
| HSL | hsl(239, 58%, 44%) |
| HSV | hsv(239, 73%, 69%) |
| CMYK | cmyk(73.4%, 72.3%, 0%, 30.6%) |
| CIE-LAB | lab(29.35, 42.17, -67.64) |
| CIE-LCH | lch(29.35, 79.71, 301.94°) |
| OKLab | oklab(40.87% 0.0099 -0.1957) |
| OKLCH | oklch(40.87% 0.196 272.9) |
| XYZ | xyz(10.2038, 5.9742, 42.2018) |
| Luminance | 0.0597 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.91
Indigo Blue
#3A18B1
ΔE00 5.20
Blue Blue
#2242C7
ΔE00 5.57
Ocean Blue
#4F42B5
ΔE00 5.62
Blue With A Hint Of Purple
#533CC6
ΔE00 5.94
True Blue
#010FCC
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F31B1 #B1AF2F
analogous
#2F72B1 #2F31B1 #6E2FB1
triadic
#2F31B1 #B12F31 #31B12F
tetradic
#2F31B1 #B12F72 #B1AF2F #2FB16E
square
#2F31B1 #B12F72 #B1AF2F #2FB16E
split-complementary
#2F31B1 #B16E2F #72B12F
monochromatic
#151650 #222481 #2F31B1 #4D4FD0 #7E7FDD
Accessibility & contrast
On white
9.57
#2F31B1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#2F31B1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F31B1
9.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F31B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F31B1 | 1.00 | 9.57 | 2.19 | 9.57 |
| #FFFFFF | 9.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#003FAF
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #2f31b1; /* rgb */ color: rgb(47, 49, 177); /* oklch */ color: oklch(40.9% 0.196 272.9);
Tailwind
colors: {
custom: {
50: '#7c6aca',
500: '#2f31b1',
950: '#000000',
},
}SCSS
$custom: #2f31b1; $custom-light: #7c6aca; $custom-dark: #000000;
JSON
{
"hex": "#2f31b1",
"rgb": {
"r": 47,
"g": 49,
"b": 177
},
"hsl": {
"h": 239.077,
"s": 58.036,
"l": 43.922
},
"oklch": {
"l": 0.40867,
"c": 0.19593,
"h": 272.9
},
"luminance": 0.05975
}Semantic roles & 50–950 ramp
primary
#2F31B1
secondary
#C5C476
accent
#DF47E1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82