#2F2188#2F2188
#2F2188 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.161 H 279.8°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2188 |
|---|---|
| RGB | rgb(47, 33, 136) |
| HSL | hsl(248, 61%, 33%) |
| HSV | hsv(248, 76%, 53%) |
| CMYK | cmyk(65.4%, 75.7%, 0%, 46.7%) |
| CIE-LAB | lab(21.83, 37.76, -54.97) |
| CIE-LCH | lch(21.83, 66.68, 304.49°) |
| OKLab | oklab(34.26% 0.0275 -0.1586) |
| OKLCH | oklch(34.26% 0.161 279.8) |
| XYZ | xyz(6.1587, 3.4691, 23.6328) |
| Luminance | 0.0347 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.71
Midnight Blue
#191970
ΔE00 4.60
Indigo (survey)
#380282
ΔE00 5.38
Cobalt Blue
#030AA7
ΔE00 5.99
Indigo Blue
#3A18B1
ΔE00 6.17
Darkblue
#00008B
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2188 #7A8821
analogous
#214688 #2F2188 #622188
triadic
#2F2188 #882F21 #21882F
tetradic
#2F2188 #882146 #7A8821 #218862
square
#2F2188 #882146 #7A8821 #218862
split-complementary
#2F2188 #886221 #468821
monochromatic
#0D0925 #1E1557 #2F2188 #402DB9 #614FD4
Accessibility & contrast
On white
12.40
#2F2188 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#2F2188 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2188
12.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2188 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2188 | 1.00 | 12.40 | 1.69 | 12.40 |
| #FFFFFF | 12.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003086
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #2f2188; /* rgb */ color: rgb(47, 33, 136); /* oklch */ color: oklch(34.3% 0.161 279.8);
Tailwind
colors: {
custom: {
50: '#745eac',
500: '#2f2188',
950: '#000000',
},
}SCSS
$custom: #2f2188; $custom-light: #745eac; $custom-dark: #000000;
JSON
{
"hex": "#2f2188",
"rgb": {
"r": 47,
"g": 33,
"b": 136
},
"hsl": {
"h": 248.155,
"s": 60.947,
"l": 33.137
},
"oklch": {
"l": 0.34261,
"c": 0.16099,
"h": 279.8
},
"luminance": 0.0347
}Semantic roles & 50–950 ramp
primary
#2F2188
secondary
#A9B84D
accent
#E444CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F