#2F218C#2F218C
#2F218C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.166 H 279.2°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).
Color values
| HEX | #2F218C |
|---|---|
| RGB | rgb(47, 33, 140) |
| HSL | hsl(248, 62%, 34%) |
| HSV | hsv(248, 76%, 55%) |
| CMYK | cmyk(66.4%, 76.4%, 0%, 45.1%) |
| CIE-LAB | lab(22.25, 39.06, -56.78) |
| CIE-LCH | lch(22.25, 68.92, 304.52°) |
| OKLab | oklab(34.68% 0.0265 -0.1639) |
| OKLCH | oklch(34.68% 0.166 279.2) |
| XYZ | xyz(6.4483, 3.5850, 25.1580) |
| Luminance | 0.0359 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.44
Midnight Blue
#191970
ΔE00 5.09
Indigo (survey)
#380282
ΔE00 5.44
Cobalt Blue
#030AA7
ΔE00 5.54
Indigo Blue
#3A18B1
ΔE00 5.59
Royal Blue (survey)
#0504AA
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F218C #7E8C21
analogous
#21498C #2F218C #65218C
triadic
#2F218C #8C2F21 #218C2F
tetradic
#2F218C #8C2149 #7E8C21 #218C65
square
#2F218C #8C2149 #7E8C21 #218C65
split-complementary
#2F218C #8C6521 #498C21
monochromatic
#0E0A29 #1E155A #2F218C #402DBE #6351D6
Accessibility & contrast
On white
12.23
#2F218C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#2F218C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F218C
12.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F218C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F218C | 1.00 | 12.23 | 1.72 | 12.23 |
| #FFFFFF | 12.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2f218c; /* rgb */ color: rgb(47, 33, 140); /* oklch */ color: oklch(34.7% 0.166 279.2);
Tailwind
colors: {
custom: {
50: '#755faf',
500: '#2f218c',
950: '#000000',
},
}SCSS
$custom: #2f218c; $custom-light: #755faf; $custom-dark: #000000;
JSON
{
"hex": "#2f218c",
"rgb": {
"r": 47,
"g": 33,
"b": 140
},
"hsl": {
"h": 247.85,
"s": 61.85,
"l": 33.922
},
"oklch": {
"l": 0.34681,
"c": 0.16605,
"h": 279.2
},
"luminance": 0.03586
}Semantic roles & 50–950 ramp
primary
#2F218C
secondary
#ACB94F
accent
#E543D0
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F