#2F147B#2F147B
#2F147B is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.158 H 284.6°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).
Color values
| HEX | #2F147B |
|---|---|
| RGB | rgb(47, 20, 123) |
| HSL | hsl(256, 72%, 28%) |
| HSV | hsv(256, 84%, 48%) |
| CMYK | cmyk(61.8%, 83.7%, 0%, 51.8%) |
| CIE-LAB | lab(18.07, 40.44, -52.94) |
| CIE-LCH | lch(18.07, 66.61, 307.37°) |
| OKLab | oklab(31.21% 0.0398 -0.1526) |
| OKLCH | oklch(31.21% 0.158 284.6) |
| XYZ | xyz(4.9965, 2.5344, 18.9609) |
| Luminance | 0.0254 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.93
Midnight Blue
#191970
ΔE00 3.82
Royal
#0C1793
ΔE00 4.69
Navy
#000080
ΔE00 4.82
Deep Blue
#040273
ΔE00 4.86
Dark Royal Blue
#02066F
ΔE00 4.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F147B #607B14
analogous
#142C7B #2F147B #62147B
triadic
#2F147B #7B2F14 #147B2F
tetradic
#2F147B #7B142C #607B14 #147B62
square
#2F147B #7B142C #607B14 #147B62
split-complementary
#2F147B #7B6214 #2C7B14
monochromatic
#0A041A #1B0B46 #2F147B #431DB0 #5B2DDD
Accessibility & contrast
On white
13.93
#2F147B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#2F147B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F147B
13.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F147B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F147B | 1.00 | 13.93 | 1.51 | 13.93 |
| #FFFFFF | 13.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002979
Tritanopia (blue-blind)
#003348
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2f147b; /* rgb */ color: rgb(47, 20, 123); /* oklch */ color: oklch(31.2% 0.158 284.6);
Tailwind
colors: {
custom: {
50: '#7256a2',
500: '#2f147b',
950: '#000000',
},
}SCSS
$custom: #2f147b; $custom-light: #7256a2; $custom-dark: #000000;
JSON
{
"hex": "#2f147b",
"rgb": {
"r": 47,
"g": 20,
"b": 123
},
"hsl": {
"h": 255.728,
"s": 72.028,
"l": 28.039
},
"oklch": {
"l": 0.31212,
"c": 0.15767,
"h": 284.6
},
"luminance": 0.02535
}Semantic roles & 50–950 ramp
primary
#2F147B
secondary
#92B13A
accent
#EF39BF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F