#2F169E#2F169E
#2F169E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.4% C 0.197 H 277.8°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).
Color values
| HEX | #2F169E |
|---|---|
| RGB | rgb(47, 22, 158) |
| HSL | hsl(251, 76%, 35%) |
| HSV | hsv(251, 86%, 62%) |
| CMYK | cmyk(70.3%, 86.1%, 0%, 38%) |
| CIE-LAB | lab(22.47, 49.88, -67.54) |
| CIE-LCH | lch(22.47, 83.96, 306.45°) |
| OKLab | oklab(35.43% 0.0266 -0.1951) |
| OKLCH | oklch(35.43% 0.197 277.8) |
| XYZ | xyz(7.6288, 3.6461, 32.6429) |
| Luminance | 0.0365 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Cobalt Blue
#030AA7
ΔE00 2.91
Indigo Blue
#3A18B1
ΔE00 2.96
Ultramarine
#2000B1
ΔE00 3.16
Royal Blue (survey)
#0504AA
ΔE00 3.20
Royal
#0C1793
ΔE00 3.21
Indigo (survey)
#380282
ΔE00 5.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F169E #859E16
analogous
#16419E #2F169E #73169E
triadic
#2F169E #9E2F16 #169E2F
tetradic
#2F169E #9E1641 #859E16 #169E73
square
#2F169E #9E1641 #859E16 #169E73
split-complementary
#2F169E #9E7316 #419E16
monochromatic
#0F0733 #1F0F68 #2F169E #3F1DD4 #6649E6
Accessibility & contrast
On white
12.14
#2F169E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#2F169E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F169E
12.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F169E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F169E | 1.00 | 12.14 | 1.73 | 12.14 |
| #FFFFFF | 12.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003BA2
Deuteranopia (green-blind)
#00309C
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2f169e; /* rgb */ color: rgb(47, 22, 158); /* oklch */ color: oklch(35.4% 0.197 277.8);
Tailwind
colors: {
custom: {
50: '#7a5abc',
500: '#2f169e',
950: '#000000',
},
}SCSS
$custom: #2f169e; $custom-light: #7a5abc; $custom-dark: #000000;
JSON
{
"hex": "#2f169e",
"rgb": {
"r": 47,
"g": 22,
"b": 158
},
"hsl": {
"h": 251.029,
"s": 75.556,
"l": 35.294
},
"oklch": {
"l": 0.35429,
"c": 0.19686,
"h": 277.8
},
"luminance": 0.03647
}Semantic roles & 50–950 ramp
primary
#2F169E
secondary
#B0C749
accent
#F236CF
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981