#2F137B#2F137B
#2F137B is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.159 H 284.7°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).
Color values
| HEX | #2F137B |
|---|---|
| RGB | rgb(47, 19, 123) |
| HSL | hsl(256, 73%, 28%) |
| HSV | hsv(256, 85%, 48%) |
| CMYK | cmyk(61.8%, 84.6%, 0%, 51.8%) |
| CIE-LAB | lab(17.92, 40.89, -53.20) |
| CIE-LCH | lch(17.92, 67.10, 307.55°) |
| OKLab | oklab(31.11% 0.0403 -0.1533) |
| OKLCH | oklch(31.11% 0.159 284.7) |
| XYZ | xyz(4.9792, 2.4998, 18.9552) |
| Luminance | 0.0250 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.78
Midnight Blue
#191970
ΔE00 3.92
Navy
#000080
ΔE00 4.70
Royal
#0C1793
ΔE00 4.71
Deep Blue
#040273
ΔE00 4.75
Dark Royal Blue
#02066F
ΔE00 4.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F137B #5F7B13
analogous
#132B7B #2F137B #63137B
triadic
#2F137B #7B2F13 #137B2F
tetradic
#2F137B #7B132B #5F7B13 #137B63
square
#2F137B #7B132B #5F7B13 #137B63
split-complementary
#2F137B #7B6313 #2B7B13
monochromatic
#0A041B #1B0B46 #2F137B #431BB0 #5B2ADE
Accessibility & contrast
On white
14.00
#2F137B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2F137B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F137B
14.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F137B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F137B | 1.00 | 14.00 | 1.50 | 14.00 |
| #FFFFFF | 14.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.00 | 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: #2f137b; /* rgb */ color: rgb(47, 19, 123); /* oklch */ color: oklch(31.1% 0.159 284.7);
Tailwind
colors: {
custom: {
50: '#7356a2',
500: '#2f137b',
950: '#000000',
},
}SCSS
$custom: #2f137b; $custom-light: #7356a2; $custom-dark: #000000;
JSON
{
"hex": "#2f137b",
"rgb": {
"r": 47,
"g": 19,
"b": 123
},
"hsl": {
"h": 256.154,
"s": 73.239,
"l": 27.843
},
"oklch": {
"l": 0.31105,
"c": 0.15853,
"h": 284.7
},
"luminance": 0.025
}Semantic roles & 50–950 ramp
primary
#2F137B
secondary
#91B139
accent
#F038BE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F