#2F148B#2F148B
#2F148B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.176 H 281.1°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).
Color values
| HEX | #2F148B |
|---|---|
| RGB | rgb(47, 20, 139) |
| HSL | hsl(254, 75%, 31%) |
| HSV | hsv(254, 86%, 55%) |
| CMYK | cmyk(66.2%, 85.6%, 0%, 45.5%) |
| CIE-LAB | lab(19.92, 45.17, -60.01) |
| CIE-LCH | lch(19.92, 75.11, 306.97°) |
| OKLab | oklab(33.02% 0.034 -0.1732) |
| OKLCH | oklch(33.02% 0.176 281.1) |
| XYZ | xyz(6.0812, 2.9683, 24.6736) |
| Luminance | 0.0297 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.03
Royal
#0C1793
ΔE00 3.08
Darkblue
#00008B
ΔE00 4.21
Cobalt Blue
#030AA7
ΔE00 4.46
Royal Blue (survey)
#0504AA
ΔE00 4.80
Navy
#000080
ΔE00 4.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F148B #708B14
analogous
#14358B #2F148B #6A148B
triadic
#2F148B #8B2F14 #148B2F
tetradic
#2F148B #8B1435 #708B14 #148B6A
square
#2F148B #8B1435 #708B14 #148B6A
split-complementary
#2F148B #8B6A14 #358B14
monochromatic
#0B0520 #1D0C55 #2F148B #411CC1 #5E37E2
Accessibility & contrast
On white
13.18
#2F148B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2F148B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F148B
13.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F148B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F148B | 1.00 | 13.18 | 1.59 | 13.18 |
| #FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002C89
Tritanopia (blue-blind)
#003A52
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2f148b; /* rgb */ color: rgb(47, 20, 139); /* oklch */ color: oklch(33.0% 0.176 281.1);
Tailwind
colors: {
custom: {
50: '#7658ae',
500: '#2f148b',
950: '#000000',
},
}SCSS
$custom: #2f148b; $custom-light: #7658ae; $custom-dark: #000000;
JSON
{
"hex": "#2f148b",
"rgb": {
"r": 47,
"g": 20,
"b": 139
},
"hsl": {
"h": 253.613,
"s": 74.843,
"l": 31.176
},
"oklch": {
"l": 0.33024,
"c": 0.17647,
"h": 281.1
},
"luminance": 0.02969
}Semantic roles & 50–950 ramp
primary
#2F148B
secondary
#A1BF3C
accent
#F136C7
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0310
muted
#7C787F