#2F237B#2F237B
#2F237B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.142 H 281.6°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).
Color values
| HEX | #2F237B |
|---|---|
| RGB | rgb(47, 35, 123) |
| HSL | hsl(248, 56%, 31%) |
| HSV | hsv(248, 72%, 48%) |
| CMYK | cmyk(61.8%, 71.5%, 0%, 51.8%) |
| CIE-LAB | lab(20.97, 32.25, -48.18) |
| CIE-LCH | lch(20.97, 57.98, 303.80°) |
| OKLab | oklab(33.25% 0.0286 -0.1388) |
| OKLCH | oklch(33.25% 0.142 281.6) |
| XYZ | xyz(5.3474, 3.2361, 19.0779) |
| Luminance | 0.0324 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.60
Royal
#0C1793
ΔE00 5.44
Indigo (survey)
#380282
ΔE00 6.27
Dark Royal Blue
#02066F
ΔE00 7.09
Deep Blue
#040273
ΔE00 7.45
Navy
#000080
ΔE00 7.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F237B #6F7B23
analogous
#23437B #2F237B #5B237B
triadic
#2F237B #7B2F23 #237B2F
tetradic
#2F237B #7B2343 #6F7B23 #237B5B
square
#2F237B #7B2343 #6F7B23 #237B5B
split-complementary
#2F237B #7B5B23 #437B23
monochromatic
#0B081C #1D154B #2F237B #4131AB #5E4CCC
Accessibility & contrast
On white
12.75
#2F237B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#2F237B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F237B
12.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F237B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F237B | 1.00 | 12.75 | 1.65 | 12.75 |
| #FFFFFF | 12.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.75 | 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: #2f237b; /* rgb */ color: rgb(47, 35, 123); /* oklch */ color: oklch(33.3% 0.142 281.6);
Tailwind
colors: {
custom: {
50: '#715fa2',
500: '#2f237b',
950: '#000000',
},
}SCSS
$custom: #2f237b; $custom-light: #715fa2; $custom-dark: #000000;
JSON
{
"hex": "#2f237b",
"rgb": {
"r": 47,
"g": 35,
"b": 123
},
"hsl": {
"h": 248.182,
"s": 55.696,
"l": 30.98
},
"oklch": {
"l": 0.33251,
"c": 0.1417,
"h": 281.6
},
"luminance": 0.03236
}Semantic roles & 50–950 ramp
primary
#2F237B
secondary
#A0AE4C
accent
#DF49CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F