#2F3381#2F3381
#2F3381 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.7% C 0.129 H 275.8°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).
Color values
| HEX | #2F3381 |
|---|---|
| RGB | rgb(47, 51, 129) |
| HSL | hsl(237, 47%, 35%) |
| HSV | hsv(237, 64%, 51%) |
| CMYK | cmyk(63.6%, 60.5%, 0%, 49.4%) |
| CIE-LAB | lab(25.43, 23.95, -44.69) |
| CIE-LCH | lch(25.43, 50.70, 298.19°) |
| OKLab | oklab(36.67% 0.013 -0.1285) |
| OKLCH | oklch(36.67% 0.129 275.8) |
| XYZ | xyz(6.3173, 4.5565, 21.3112) |
| Luminance | 0.0456 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.78
Blueberry
#464196
ΔE00 5.47
Sapphire (survey)
#2138AB
ΔE00 6.49
Midnight Blue
#191970
ΔE00 7.36
Marine
#042E60
ΔE00 7.97
Royal
#0C1793
ΔE00 8.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F3381 #817D2F
analogous
#2F5C81 #2F3381 #542F81
triadic
#2F3381 #812F33 #33812F
tetradic
#2F3381 #812F5C #817D2F #2F8154
square
#2F3381 #812F5C #817D2F #2F8154
split-complementary
#2F3381 #81542F #5C812F
monochromatic
#0E1027 #1F2154 #2F3381 #3F45AE #6469C6
Accessibility & contrast
On white
10.99
#2F3381 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.91
#2F3381 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F3381
10.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F3381 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F3381 | 1.00 | 10.99 | 1.91 | 10.99 |
| #FFFFFF | 10.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#00397F
Tritanopia (blue-blind)
#004654
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #2f3381; /* rgb */ color: rgb(47, 51, 129); /* oklch */ color: oklch(36.7% 0.129 275.8);
Tailwind
colors: {
custom: {
50: '#716aa6',
500: '#2f3381',
950: '#000000',
},
}SCSS
$custom: #2f3381; $custom-light: #716aa6; $custom-dark: #000000;
JSON
{
"hex": "#2f3381",
"rgb": {
"r": 47,
"g": 51,
"b": 129
},
"hsl": {
"h": 237.073,
"s": 46.591,
"l": 34.51
},
"oklch": {
"l": 0.36674,
"c": 0.12912,
"h": 275.8
},
"luminance": 0.04557
}Semantic roles & 50–950 ramp
primary
#2F3381
secondary
#ADAA5E
accent
#D052D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F