#2F137C#2F137C
#2F137C is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.160 H 284.5°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).
Color values
| HEX | #2F137C |
|---|---|
| RGB | rgb(47, 19, 124) |
| HSL | hsl(256, 73%, 28%) |
| HSV | hsv(256, 85%, 49%) |
| CMYK | cmyk(62.1%, 84.7%, 0%, 51.4%) |
| CIE-LAB | lab(18.03, 41.18, -53.65) |
| CIE-LCH | lch(18.03, 67.63, 307.51°) |
| OKLab | oklab(31.22% 0.04 -0.1546) |
| OKLCH | oklch(31.22% 0.16 284.5) |
| XYZ | xyz(5.0421, 2.5250, 19.2866) |
| Luminance | 0.0253 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.72
Midnight Blue
#191970
ΔE00 3.98
Royal
#0C1793
ΔE00 4.59
Navy
#000080
ΔE00 4.66
Deep Blue
#040273
ΔE00 4.77
Darkblue
#00008B
ΔE00 4.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F137C #607C13
analogous
#132B7C #2F137C #63137C
triadic
#2F137C #7C2F13 #137C2F
tetradic
#2F137C #7C132B #607C13 #137C63
square
#2F137C #7C132B #607C13 #137C63
split-complementary
#2F137C #7C6313 #2B7C13
monochromatic
#0A041B #1B0B47 #2F137C #431BB1 #5B2BDF
Accessibility & contrast
On white
13.95
#2F137C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#2F137C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F137C
13.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F137C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F137C | 1.00 | 13.95 | 1.51 | 13.95 |
| #FFFFFF | 13.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00297A
Tritanopia (blue-blind)
#003349
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2f137c; /* rgb */ color: rgb(47, 19, 124); /* oklch */ color: oklch(31.2% 0.160 284.5);
Tailwind
colors: {
custom: {
50: '#7356a3',
500: '#2f137c',
950: '#000000',
},
}SCSS
$custom: #2f137c; $custom-light: #7356a3; $custom-dark: #000000;
JSON
{
"hex": "#2f137c",
"rgb": {
"r": 47,
"g": 19,
"b": 124
},
"hsl": {
"h": 256,
"s": 73.427,
"l": 28.039
},
"oklch": {
"l": 0.31217,
"c": 0.15971,
"h": 284.5
},
"luminance": 0.02525
}Semantic roles & 50–950 ramp
primary
#2F137C
secondary
#92B239
accent
#F038BF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F