#2D117F#2D117F
#2D117F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.165 H 282.8°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).
Color values
| HEX | #2D117F |
|---|---|
| RGB | rgb(45, 17, 127) |
| HSL | hsl(255, 76%, 28%) |
| HSV | hsv(255, 87%, 50%) |
| CMYK | cmyk(64.6%, 86.6%, 0%, 50.2%) |
| CIE-LAB | lab(17.88, 42.72, -55.82) |
| CIE-LCH | lch(17.88, 70.29, 307.43°) |
| OKLab | oklab(31.16% 0.0366 -0.161) |
| OKLCH | oklch(31.16% 0.165 282.8) |
| XYZ | xyz(5.1122, 2.4907, 20.2859) |
| Luminance | 0.0249 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.47
Royal
#0C1793
ΔE00 4.12
Navy
#000080
ΔE00 4.16
Darkblue
#00008B
ΔE00 4.17
Midnight Blue
#191970
ΔE00 4.20
Deep Blue
#040273
ΔE00 4.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D117F #637F11
analogous
#112C7F #2D117F #64117F
triadic
#2D117F #7F2D11 #117F2D
tetradic
#2D117F #7F112C #637F11 #117F64
square
#2D117F #7F112C #637F11 #117F64
split-complementary
#2D117F #7F6411 #2C7F11
monochromatic
#0A041B #1A0A49 #2D117F #4018B5 #5828E2
Accessibility & contrast
On white
14.02
#2D117F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2D117F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D117F
14.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D117F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D117F | 1.00 | 14.02 | 1.50 | 14.02 |
| #FFFFFF | 14.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2d117f; /* rgb */ color: rgb(45, 17, 127); /* oklch */ color: oklch(31.2% 0.165 282.8);
Tailwind
colors: {
custom: {
50: '#7355a5',
500: '#2d117f',
950: '#000000',
},
}SCSS
$custom: #2d117f; $custom-light: #7355a5; $custom-dark: #000000;
JSON
{
"hex": "#2d117f",
"rgb": {
"r": 45,
"g": 17,
"b": 127
},
"hsl": {
"h": 255.273,
"s": 76.389,
"l": 28.235
},
"oklch": {
"l": 0.31162,
"c": 0.1651,
"h": 282.8
},
"luminance": 0.02491
}Semantic roles & 50–950 ramp
primary
#2D117F
secondary
#95B537
accent
#F335C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F