#2F167F#2F167F
#2F167F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.161 H 283.4°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).
Color values
| HEX | #2F167F |
|---|---|
| RGB | rgb(47, 22, 127) |
| HSL | hsl(254, 70%, 29%) |
| HSV | hsv(254, 83%, 50%) |
| CMYK | cmyk(63%, 82.7%, 0%, 50.2%) |
| CIE-LAB | lab(18.84, 40.70, -54.22) |
| CIE-LCH | lch(18.84, 67.79, 306.90°) |
| OKLab | oklab(31.88% 0.0372 -0.1563) |
| OKLCH | oklch(31.88% 0.161 283.4) |
| XYZ | xyz(5.2888, 2.7101, 20.3190) |
| Luminance | 0.0271 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.10
Midnight Blue
#191970
ΔE00 3.93
Royal
#0C1793
ΔE00 4.14
Darkblue
#00008B
ΔE00 4.89
Navy
#000080
ΔE00 4.93
Deep Blue
#040273
ΔE00 5.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F167F #667F16
analogous
#16317F #2F167F #64167F
triadic
#2F167F #7F2F16 #167F2F
tetradic
#2F167F #7F1631 #667F16 #167F64
square
#2F167F #7F1631 #667F16 #167F64
split-complementary
#2F167F #7F6416 #317F16
monochromatic
#0A051A #1C0D4B #2F167F #421FB3 #5C34DC
Accessibility & contrast
On white
13.62
#2F167F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#2F167F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F167F
13.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F167F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F167F | 1.00 | 13.62 | 1.54 | 13.62 |
| #FFFFFF | 13.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2f167f; /* rgb */ color: rgb(47, 22, 127); /* oklch */ color: oklch(31.9% 0.161 283.4);
Tailwind
colors: {
custom: {
50: '#7358a5',
500: '#2f167f',
950: '#000000',
},
}SCSS
$custom: #2f167f; $custom-light: #7358a5; $custom-dark: #000000;
JSON
{
"hex": "#2f167f",
"rgb": {
"r": 47,
"g": 22,
"b": 127
},
"hsl": {
"h": 254.286,
"s": 70.47,
"l": 29.216
},
"oklch": {
"l": 0.31878,
"c": 0.16069,
"h": 283.4
},
"luminance": 0.0271
}Semantic roles & 50–950 ramp
primary
#2F167F
secondary
#98B43D
accent
#ED3BC3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F