#2F218E#2F218E
#2F218E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.169 H 278.9°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).
Color values
| HEX | #2F218E |
|---|---|
| RGB | rgb(47, 33, 142) |
| HSL | hsl(248, 62%, 34%) |
| HSV | hsv(248, 77%, 56%) |
| CMYK | cmyk(66.9%, 76.8%, 0%, 44.3%) |
| CIE-LAB | lab(22.46, 39.71, -57.68) |
| CIE-LCH | lch(22.46, 70.02, 304.55°) |
| OKLab | oklab(34.89% 0.026 -0.1665) |
| OKLCH | oklch(34.89% 0.169 278.9) |
| XYZ | xyz(6.5971, 3.6445, 25.9417) |
| Luminance | 0.0365 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.35
Indigo Blue
#3A18B1
ΔE00 5.31
Cobalt Blue
#030AA7
ΔE00 5.33
Midnight Blue
#191970
ΔE00 5.34
Indigo (survey)
#380282
ΔE00 5.50
Royal Blue (survey)
#0504AA
ΔE00 5.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F218E #808E21
analogous
#214A8E #2F218E #66218E
triadic
#2F218E #8E2F21 #218E2F
tetradic
#2F218E #8E214A #808E21 #218E66
square
#2F218E #8E214A #808E21 #218E66
split-complementary
#2F218E #8E6621 #4A8E21
monochromatic
#0E0A2B #1F155C #2F218E #3F2DC0 #6352D7
Accessibility & contrast
On white
12.15
#2F218E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#2F218E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F218E
12.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F218E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F218E | 1.00 | 12.15 | 1.73 | 12.15 |
| #FFFFFF | 12.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2f218e; /* rgb */ color: rgb(47, 33, 142); /* oklch */ color: oklch(34.9% 0.169 278.9);
Tailwind
colors: {
custom: {
50: '#755fb0',
500: '#2f218e',
950: '#000000',
},
}SCSS
$custom: #2f218e; $custom-light: #755fb0; $custom-dark: #000000;
JSON
{
"hex": "#2f218e",
"rgb": {
"r": 47,
"g": 33,
"b": 142
},
"hsl": {
"h": 247.706,
"s": 62.286,
"l": 34.314
},
"oklch": {
"l": 0.34892,
"c": 0.16856,
"h": 278.9
},
"luminance": 0.03645
}Semantic roles & 50–950 ramp
primary
#2F218E
secondary
#ADBA50
accent
#E542D0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980