#2F237C#2F237C
#2F237C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.143 H 281.4°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).
Color values
| HEX | #2F237C |
|---|---|
| RGB | rgb(47, 35, 124) |
| HSL | hsl(248, 56%, 31%) |
| HSV | hsv(248, 72%, 49%) |
| CMYK | cmyk(62.1%, 71.8%, 0%, 51.4%) |
| CIE-LAB | lab(21.06, 32.59, -48.66) |
| CIE-LCH | lch(21.06, 58.57, 303.81°) |
| OKLab | oklab(33.35% 0.0284 -0.1402) |
| OKLCH | oklch(33.35% 0.143 281.4) |
| XYZ | xyz(5.4103, 3.2613, 19.4093) |
| Luminance | 0.0326 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.65
Royal
#0C1793
ΔE00 5.30
Indigo (survey)
#380282
ΔE00 6.21
Dark Royal Blue
#02066F
ΔE00 7.09
Deep Blue
#040273
ΔE00 7.44
Darkblue
#00008B
ΔE00 7.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F237C #707C23
analogous
#23437C #2F237C #5B237C
triadic
#2F237C #7C2F23 #237C2F
tetradic
#2F237C #7C2343 #707C23 #237C5B
square
#2F237C #7C2343 #707C23 #237C5B
split-complementary
#2F237C #7C5B23 #437C23
monochromatic
#0B081D #1D164C #2F237C #4130AC #5E4DCD
Accessibility & contrast
On white
12.71
#2F237C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#2F237C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F237C
12.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F237C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F237C | 1.00 | 12.71 | 1.65 | 12.71 |
| #FFFFFF | 12.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2f237c; /* rgb */ color: rgb(47, 35, 124); /* oklch */ color: oklch(33.3% 0.143 281.4);
Tailwind
colors: {
custom: {
50: '#715fa3',
500: '#2f237c',
950: '#000000',
},
}SCSS
$custom: #2f237c; $custom-light: #715fa3; $custom-dark: #000000;
JSON
{
"hex": "#2f237c",
"rgb": {
"r": 47,
"g": 35,
"b": 124
},
"hsl": {
"h": 248.09,
"s": 55.975,
"l": 31.176
},
"oklch": {
"l": 0.33349,
"c": 0.14303,
"h": 281.4
},
"luminance": 0.03262
}Semantic roles & 50–950 ramp
primary
#2F237C
secondary
#A1AF4C
accent
#DF49CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F