#2F236B#2F236B
#2F236B is a dark, moderate violet. Relative luminance 0.029; OKLCH L 31.7% C 0.120 H 284.9°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).
Color values
| HEX | #2F236B |
|---|---|
| RGB | rgb(47, 35, 107) |
| HSL | hsl(250, 51%, 28%) |
| HSV | hsv(250, 67%, 42%) |
| CMYK | cmyk(56.1%, 67.3%, 0%, 58%) |
| CIE-LAB | lab(19.51, 26.85, -40.27) |
| CIE-LCH | lch(19.51, 48.40, 303.69°) |
| OKLab | oklab(31.75% 0.0308 -0.1156) |
| OKLCH | oklch(31.75% 0.12 284.9) |
| XYZ | xyz(4.4264, 2.8677, 14.2274) |
| Luminance | 0.0287 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.15
Dark Indigo
#1F0954
ΔE00 6.75
Darkblue (survey)
#030764
ΔE00 7.60
Dark Royal Blue
#02066F
ΔE00 7.81
Indigo (survey)
#380282
ΔE00 7.86
Royal
#0C1793
ΔE00 8.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F236B #5F6B23
analogous
#233B6B #2F236B #53236B
triadic
#2F236B #6B2F23 #236B2F
tetradic
#2F236B #6B233B #5F6B23 #236B53
square
#2F236B #6B233B #5F6B23 #236B53
split-complementary
#2F236B #6B5323 #3B6B23
monochromatic
#0A0817 #1B143D #2F236B #433299 #5B46C2
Accessibility & contrast
On white
13.35
#2F236B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#2F236B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F236B
13.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F236B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F236B | 1.00 | 13.35 | 1.57 | 13.35 |
| #FFFFFF | 13.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#002D6A
Tritanopia (blue-blind)
#163543
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2f236b; /* rgb */ color: rgb(47, 35, 107); /* oklch */ color: oklch(31.7% 0.120 284.9);
Tailwind
colors: {
custom: {
50: '#6e5e96',
500: '#2f236b',
950: '#000000',
},
}SCSS
$custom: #2f236b; $custom-light: #6e5e96; $custom-dark: #000000;
JSON
{
"hex": "#2f236b",
"rgb": {
"r": 47,
"g": 35,
"b": 107
},
"hsl": {
"h": 250,
"s": 50.704,
"l": 27.843
},
"oklch": {
"l": 0.31745,
"c": 0.11962,
"h": 284.9
},
"luminance": 0.02868
}Semantic roles & 50–950 ramp
primary
#2F236B
secondary
#919E4B
accent
#DA4EC3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040D
muted
#7B797E