#2F227B#2F227B
#2F227B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.143 H 281.9°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).
Color values
| HEX | #2F227B |
|---|---|
| RGB | rgb(47, 34, 123) |
| HSL | hsl(249, 57%, 31%) |
| HSV | hsv(249, 72%, 48%) |
| CMYK | cmyk(61.8%, 72.4%, 0%, 51.8%) |
| CIE-LAB | lab(20.74, 32.87, -48.54) |
| CIE-LCH | lch(20.74, 58.62, 304.10°) |
| OKLab | oklab(33.09% 0.0294 -0.1398) |
| OKLCH | oklch(33.09% 0.143 281.9) |
| XYZ | xyz(5.3184, 3.1781, 19.0682) |
| Luminance | 0.0318 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.49
Royal
#0C1793
ΔE00 5.30
Indigo (survey)
#380282
ΔE00 6.00
Dark Royal Blue
#02066F
ΔE00 6.88
Deep Blue
#040273
ΔE00 7.22
Navy
#000080
ΔE00 7.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F227B #6E7B22
analogous
#22417B #2F227B #5B227B
triadic
#2F227B #7B2F22 #227B2F
tetradic
#2F227B #7B2241 #6E7B22 #227B5B
square
#2F227B #7B2241 #6E7B22 #227B5B
split-complementary
#2F227B #7B5B22 #417B22
monochromatic
#0A071B #1D154B #2F227B #412FAB #5D4ACD
Accessibility & contrast
On white
12.84
#2F227B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#2F227B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F227B
12.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F227B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F227B | 1.00 | 12.84 | 1.64 | 12.84 |
| #FFFFFF | 12.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2f227b; /* rgb */ color: rgb(47, 34, 123); /* oklch */ color: oklch(33.1% 0.143 281.9);
Tailwind
colors: {
custom: {
50: '#715ea2',
500: '#2f227b',
950: '#000000',
},
}SCSS
$custom: #2f227b; $custom-light: #715ea2; $custom-dark: #000000;
JSON
{
"hex": "#2f227b",
"rgb": {
"r": 47,
"g": 34,
"b": 123
},
"hsl": {
"h": 248.764,
"s": 56.688,
"l": 30.784
},
"oklch": {
"l": 0.33092,
"c": 0.14291,
"h": 281.9
},
"luminance": 0.03178
}Semantic roles & 50–950 ramp
primary
#2F227B
secondary
#9FAE4B
accent
#E048CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F