#2F236E#2F236E
#2F236E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.124 H 284.3°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).
Color values
| HEX | #2F236E |
|---|---|
| RGB | rgb(47, 35, 110) |
| HSL | hsl(250, 52%, 28%) |
| HSV | hsv(250, 68%, 43%) |
| CMYK | cmyk(57.3%, 68.2%, 0%, 56.9%) |
| CIE-LAB | lab(19.77, 27.86, -41.79) |
| CIE-LCH | lch(19.77, 50.23, 303.69°) |
| OKLab | oklab(32.02% 0.0305 -0.12) |
| OKLCH | oklch(32.02% 0.124 284.3) |
| XYZ | xyz(4.5869, 2.9319, 15.0730) |
| Luminance | 0.0293 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.85
Dark Indigo
#1F0954
ΔE00 6.92
Darkblue (survey)
#030764
ΔE00 7.47
Indigo (survey)
#380282
ΔE00 7.48
Royal
#0C1793
ΔE00 7.50
Dark Royal Blue
#02066F
ΔE00 7.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F236E #626E23
analogous
#233C6E #2F236E #54236E
triadic
#2F236E #6E2F23 #236E2F
tetradic
#2F236E #6E233C #626E23 #236E54
square
#2F236E #6E233C #626E23 #236E54
split-complementary
#2F236E #6E5423 #3C6E23
monochromatic
#0A0717 #1B1440 #2F236E #43329C #5B47C4
Accessibility & contrast
On white
13.24
#2F236E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2F236E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F236E
13.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F236E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F236E | 1.00 | 13.24 | 1.59 | 13.24 |
| #FFFFFF | 13.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#002D6D
Tritanopia (blue-blind)
#133645
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2f236e; /* rgb */ color: rgb(47, 35, 110); /* oklch */ color: oklch(32.0% 0.124 284.3);
Tailwind
colors: {
custom: {
50: '#6f5f98',
500: '#2f236e',
950: '#000000',
},
}SCSS
$custom: #2f236e; $custom-light: #6f5f98; $custom-dark: #000000;
JSON
{
"hex": "#2f236e",
"rgb": {
"r": 47,
"g": 35,
"b": 110
},
"hsl": {
"h": 249.6,
"s": 51.724,
"l": 28.431
},
"oklch": {
"l": 0.32018,
"c": 0.12385,
"h": 284.3
},
"luminance": 0.02932
}Semantic roles & 50–950 ramp
primary
#2F236E
secondary
#94A14C
accent
#DB4DC4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E