#2F188C#2F188C
#2F188C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.174 H 280.5°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).
Color values
| HEX | #2F188C |
|---|---|
| RGB | rgb(47, 24, 140) |
| HSL | hsl(252, 71%, 32%) |
| HSV | hsv(252, 83%, 55%) |
| CMYK | cmyk(66.4%, 82.9%, 0%, 45.1%) |
| CIE-LAB | lab(20.64, 43.69, -59.44) |
| CIE-LCH | lch(20.64, 73.77, 306.32°) |
| OKLab | oklab(33.55% 0.0317 -0.1716) |
| OKLCH | oklch(33.55% 0.174 280.5) |
| XYZ | xyz(6.2310, 3.1506, 25.0856) |
| Luminance | 0.0315 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.92
Indigo (survey)
#380282
ΔE00 3.69
Cobalt Blue
#030AA7
ΔE00 4.55
Darkblue
#00008B
ΔE00 4.70
Royal Blue (survey)
#0504AA
ΔE00 4.95
Midnight Blue
#191970
ΔE00 5.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F188C #758C18
analogous
#183B8C #2F188C #69188C
triadic
#2F188C #8C2F18 #188C2F
tetradic
#2F188C #8C183B #758C18 #188C69
square
#2F188C #8C183B #758C18 #188C69
split-complementary
#2F188C #8C6918 #3B8C18
monochromatic
#0C0624 #1D0F58 #2F188C #4121C0 #5F40DE
Accessibility & contrast
On white
12.88
#2F188C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#2F188C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F188C
12.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F188C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F188C | 1.00 | 12.88 | 1.63 | 12.88 |
| #FFFFFF | 12.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368F
Deuteranopia (green-blind)
#002D8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2f188c; /* rgb */ color: rgb(47, 24, 140); /* oklch */ color: oklch(33.6% 0.174 280.5);
Tailwind
colors: {
custom: {
50: '#765aaf',
500: '#2f188c',
950: '#000000',
},
}SCSS
$custom: #2f188c; $custom-light: #765aaf; $custom-dark: #000000;
JSON
{
"hex": "#2f188c",
"rgb": {
"r": 47,
"g": 24,
"b": 140
},
"hsl": {
"h": 251.897,
"s": 70.732,
"l": 32.157
},
"oklch": {
"l": 0.33554,
"c": 0.17448,
"h": 280.5
},
"luminance": 0.03151
}Semantic roles & 50–950 ramp
primary
#2F188C
secondary
#A6BF41
accent
#ED3ACA
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F