#2F236F#2F236F
#2F236F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.1% C 0.125 H 284.0°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).
Color values
| HEX | #2F236F |
|---|---|
| RGB | rgb(47, 35, 111) |
| HSL | hsl(249, 52%, 29%) |
| HSV | hsv(249, 68%, 44%) |
| CMYK | cmyk(57.7%, 68.5%, 0%, 56.5%) |
| CIE-LAB | lab(19.86, 28.20, -42.29) |
| CIE-LCH | lch(19.86, 50.83, 303.70°) |
| OKLab | oklab(32.11% 0.0304 -0.1215) |
| OKLCH | oklch(32.11% 0.125 284) |
| XYZ | xyz(4.6417, 2.9538, 15.3614) |
| Luminance | 0.0295 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.77
Dark Indigo
#1F0954
ΔE00 6.99
Royal
#0C1793
ΔE00 7.32
Indigo (survey)
#380282
ΔE00 7.36
Darkblue (survey)
#030764
ΔE00 7.44
Dark Royal Blue
#02066F
ΔE00 7.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F236F #636F23
analogous
#233D6F #2F236F #55236F
triadic
#2F236F #6F2F23 #236F2F
tetradic
#2F236F #6F233D #636F23 #236F55
square
#2F236F #6F233D #636F23 #236F55
split-complementary
#2F236F #6F5523 #3D6F23
monochromatic
#0A0717 #1B1440 #2F236F #43329E #5B47C5
Accessibility & contrast
On white
13.20
#2F236F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2F236F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F236F
13.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F236F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F236F | 1.00 | 13.20 | 1.59 | 13.20 |
| #FFFFFF | 13.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#002E6D
Tritanopia (blue-blind)
#123645
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2f236f; /* rgb */ color: rgb(47, 35, 111); /* oklch */ color: oklch(32.1% 0.125 284.0);
Tailwind
colors: {
custom: {
50: '#6f5f99',
500: '#2f236f',
950: '#000000',
},
}SCSS
$custom: #2f236f; $custom-light: #6f5f99; $custom-dark: #000000;
JSON
{
"hex": "#2f236f",
"rgb": {
"r": 47,
"g": 35,
"b": 111
},
"hsl": {
"h": 249.474,
"s": 52.055,
"l": 28.627
},
"oklch": {
"l": 0.3211,
"c": 0.12525,
"h": 284
},
"luminance": 0.02954
}Semantic roles & 50–950 ramp
primary
#2F236F
secondary
#95A24C
accent
#DB4CC5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E