#2F137E#2F137E
#2F137E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.162 H 284.0°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).
Color values
| HEX | #2F137E |
|---|---|
| RGB | rgb(47, 19, 126) |
| HSL | hsl(256, 74%, 28%) |
| HSV | hsv(256, 85%, 49%) |
| CMYK | cmyk(62.7%, 84.9%, 0%, 50.6%) |
| CIE-LAB | lab(18.26, 41.78, -54.54) |
| CIE-LCH | lch(18.26, 68.70, 307.45°) |
| OKLab | oklab(31.44% 0.0393 -0.1572) |
| OKLCH | oklch(31.44% 0.162 284) |
| XYZ | xyz(5.1699, 2.5761, 19.9594) |
| Luminance | 0.0258 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.63
Midnight Blue
#191970
ΔE00 4.12
Royal
#0C1793
ΔE00 4.34
Navy
#000080
ΔE00 4.59
Darkblue
#00008B
ΔE00 4.62
Deep Blue
#040273
ΔE00 4.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F137E #627E13
analogous
#132C7E #2F137E #64137E
triadic
#2F137E #7E2F13 #137E2F
tetradic
#2F137E #7E132C #627E13 #137E64
square
#2F137E #7E132C #627E13 #137E64
split-complementary
#2F137E #7E6413 #2C7E13
monochromatic
#0A041B #1B0B49 #2F137E #431BB3 #5B2CDF
Accessibility & contrast
On white
13.86
#2F137E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#2F137E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F137E
13.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F137E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F137E | 1.00 | 13.86 | 1.52 | 13.86 |
| #FFFFFF | 13.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00297C
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2f137e; /* rgb */ color: rgb(47, 19, 126); /* oklch */ color: oklch(31.4% 0.162 284.0);
Tailwind
colors: {
custom: {
50: '#7356a5',
500: '#2f137e',
950: '#000000',
},
}SCSS
$custom: #2f137e; $custom-light: #7356a5; $custom-dark: #000000;
JSON
{
"hex": "#2f137e",
"rgb": {
"r": 47,
"g": 19,
"b": 126
},
"hsl": {
"h": 255.701,
"s": 73.793,
"l": 28.431
},
"oklch": {
"l": 0.31441,
"c": 0.16207,
"h": 284
},
"luminance": 0.02576
}Semantic roles & 50–950 ramp
primary
#2F137E
secondary
#94B439
accent
#F037C0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F