#2F31AA#2F31AA
#2F31AA is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.2% C 0.187 H 273.4°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).
Color values
| HEX | #2F31AA |
|---|---|
| RGB | rgb(47, 49, 170) |
| HSL | hsl(239, 57%, 43%) |
| HSV | hsv(239, 72%, 67%) |
| CMYK | cmyk(72.4%, 71.2%, 0%, 33.3%) |
| CIE-LAB | lab(28.65, 39.78, -64.59) |
| CIE-LCH | lch(28.65, 75.86, 301.63°) |
| OKLab | oklab(40.16% 0.011 -0.1868) |
| OKLCH | oklch(40.16% 0.187 273.4) |
| XYZ | xyz(9.5239, 5.7023, 38.6212) |
| Luminance | 0.0570 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.68
Indigo Blue
#3A18B1
ΔE00 5.39
Ocean Blue
#4F42B5
ΔE00 5.89
Blue Blue
#2242C7
ΔE00 6.08
Blueberry
#464196
ΔE00 6.19
Blue With A Hint Of Purple
#533CC6
ΔE00 6.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F31AA #AAA82F
analogous
#2F6FAA #2F31AA #6A2FAA
triadic
#2F31AA #AA2F31 #31AA2F
tetradic
#2F31AA #AA2F6F #AAA82F #2FAA6A
square
#2F31AA #AA2F6F #AAA82F #2FAA6A
split-complementary
#2F31AA #AA6A2F #6FAA2F
monochromatic
#14154A #22237A #2F31AA #494CCD #797BDA
Accessibility & contrast
On white
9.81
#2F31AA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.14
#2F31AA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F31AA
9.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F31AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F31AA | 1.00 | 9.81 | 2.14 | 9.81 |
| #FFFFFF | 9.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#003EA8
Tritanopia (blue-blind)
#00536A
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #2f31aa; /* rgb */ color: rgb(47, 49, 170); /* oklch */ color: oklch(40.2% 0.187 273.4);
Tailwind
colors: {
custom: {
50: '#7a6ac4',
500: '#2f31aa',
950: '#000000',
},
}SCSS
$custom: #2f31aa; $custom-light: #7a6ac4; $custom-dark: #000000;
JSON
{
"hex": "#2f31aa",
"rgb": {
"r": 47,
"g": 49,
"b": 170
},
"hsl": {
"h": 239.024,
"s": 56.682,
"l": 42.549
},
"oklch": {
"l": 0.40156,
"c": 0.18712,
"h": 273.4
},
"luminance": 0.05703
}Semantic roles & 50–950 ramp
primary
#2F31AA
secondary
#C2C172
accent
#DD48E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82