#2F117F#2F117F
#2F117F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.4% C 0.165 H 284.0°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).
Color values
| HEX | #2F117F |
|---|---|
| RGB | rgb(47, 17, 127) |
| HSL | hsl(256, 76%, 28%) |
| HSV | hsv(256, 87%, 50%) |
| CMYK | cmyk(63%, 86.6%, 0%, 50.2%) |
| CIE-LAB | lab(18.09, 42.92, -55.47) |
| CIE-LCH | lch(18.09, 70.13, 307.73°) |
| OKLab | oklab(31.36% 0.0399 -0.1599) |
| OKLCH | oklch(31.36% 0.165 284) |
| XYZ | xyz(5.2023, 2.5372, 20.2901) |
| Luminance | 0.0254 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.30
Royal
#0C1793
ΔE00 4.30
Darkblue
#00008B
ΔE00 4.36
Navy
#000080
ΔE00 4.37
Midnight Blue
#191970
ΔE00 4.38
Deep Blue
#040273
ΔE00 4.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F117F #617F11
analogous
#112A7F #2F117F #66117F
triadic
#2F117F #7F2F11 #117F2F
tetradic
#2F117F #7F112A #617F11 #117F66
square
#2F117F #7F112A #617F11 #117F66
split-complementary
#2F117F #7F6611 #2A7F11
monochromatic
#0A041B #1B0A49 #2F117F #4318B5 #5B28E2
Accessibility & contrast
On white
13.93
#2F117F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#2F117F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F117F
13.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F117F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F117F | 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)
#002F82
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2f117f; /* rgb */ color: rgb(47, 17, 127); /* oklch */ color: oklch(31.4% 0.165 284.0);
Tailwind
colors: {
custom: {
50: '#7355a5',
500: '#2f117f',
950: '#000000',
},
}SCSS
$custom: #2f117f; $custom-light: #7355a5; $custom-dark: #000000;
JSON
{
"hex": "#2f117f",
"rgb": {
"r": 47,
"g": 17,
"b": 127
},
"hsl": {
"h": 256.364,
"s": 76.389,
"l": 28.235
},
"oklch": {
"l": 0.31356,
"c": 0.16481,
"h": 284
},
"luminance": 0.02538
}Semantic roles & 50–950 ramp
primary
#2F117F
secondary
#93B537
accent
#F335BF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F