#2F2287#2F2287
#2F2287 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.159 H 279.8°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2287 |
|---|---|
| RGB | rgb(47, 34, 135) |
| HSL | hsl(248, 60%, 33%) |
| HSV | hsv(248, 75%, 53%) |
| CMYK | cmyk(65.2%, 74.8%, 0%, 47.1%) |
| CIE-LAB | lab(21.93, 36.85, -54.17) |
| CIE-LCH | lch(21.93, 65.52, 304.23°) |
| OKLab | oklab(34.3% 0.027 -0.1563) |
| OKLCH | oklch(34.3% 0.159 279.8) |
| XYZ | xyz(6.1161, 3.4972, 23.2697) |
| Luminance | 0.0350 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.93
Midnight Blue
#191970
ΔE00 4.54
Indigo (survey)
#380282
ΔE00 5.62
Cobalt Blue
#030AA7
ΔE00 6.26
Indigo Blue
#3A18B1
ΔE00 6.40
Darkblue
#00008B
ΔE00 6.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2287 #7A8722
analogous
#224787 #2F2287 #612287
triadic
#2F2287 #872F22 #22872F
tetradic
#2F2287 #872247 #7A8722 #228761
square
#2F2287 #872247 #7A8722 #228761
split-complementary
#2F2287 #876122 #478722
monochromatic
#0D0925 #1E1656 #2F2287 #402EB8 #6150D3
Accessibility & contrast
On white
12.36
#2F2287 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#2F2287 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2287
12.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2287 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2287 | 1.00 | 12.36 | 1.70 | 12.36 |
| #FFFFFF | 12.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2f2287; /* rgb */ color: rgb(47, 34, 135); /* oklch */ color: oklch(34.3% 0.159 279.8);
Tailwind
colors: {
custom: {
50: '#745fab',
500: '#2f2287',
950: '#000000',
},
}SCSS
$custom: #2f2287; $custom-light: #745fab; $custom-dark: #000000;
JSON
{
"hex": "#2f2287",
"rgb": {
"r": 47,
"g": 34,
"b": 135
},
"hsl": {
"h": 247.723,
"s": 59.763,
"l": 33.137
},
"oklch": {
"l": 0.34302,
"c": 0.15862,
"h": 279.8
},
"luminance": 0.03498
}Semantic roles & 50–950 ramp
primary
#2F2287
secondary
#A9B74E
accent
#E345CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F