#2B137F#2B137F
#2B137F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.164 H 281.4°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).
Color values
| HEX | #2B137F |
|---|---|
| RGB | rgb(43, 19, 127) |
| HSL | hsl(253, 74%, 29%) |
| HSV | hsv(253, 85%, 50%) |
| CMYK | cmyk(66.1%, 85%, 0%, 50.2%) |
| CIE-LAB | lab(17.97, 41.66, -55.67) |
| CIE-LCH | lch(17.97, 69.53, 306.81°) |
| OKLab | oklab(31.18% 0.0323 -0.1606) |
| OKLCH | oklch(31.18% 0.164 281.4) |
| XYZ | xyz(5.0587, 2.5113, 20.2927) |
| Luminance | 0.0251 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.93
Midnight Blue
#191970
ΔE00 3.83
Royal
#0C1793
ΔE00 3.85
Navy
#000080
ΔE00 4.19
Darkblue
#00008B
ΔE00 4.20
Deep Blue
#040273
ΔE00 4.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B137F #677F13
analogous
#13317F #2B137F #61137F
triadic
#2B137F #7F2B13 #137F2B
tetradic
#2B137F #7F1331 #677F13 #137F61
square
#2B137F #7F1331 #677F13 #137F61
split-complementary
#2B137F #7F6113 #317F13
monochromatic
#09041B #190B4A #2B137F #3D1BB4 #552DE0
Accessibility & contrast
On white
13.98
#2B137F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2B137F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B137F
13.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B137F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B137F | 1.00 | 13.98 | 1.50 | 13.98 |
| #FFFFFF | 13.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2b137f; /* rgb */ color: rgb(43, 19, 127); /* oklch */ color: oklch(31.2% 0.164 281.4);
Tailwind
colors: {
custom: {
50: '#7156a5',
500: '#2b137f',
950: '#000000',
},
}SCSS
$custom: #2b137f; $custom-light: #7156a5; $custom-dark: #000000;
JSON
{
"hex": "#2b137f",
"rgb": {
"r": 43,
"g": 19,
"b": 127
},
"hsl": {
"h": 253.333,
"s": 73.973,
"l": 28.627
},
"oklch": {
"l": 0.31177,
"c": 0.16387,
"h": 281.4
},
"luminance": 0.02512
}Semantic roles & 50–950 ramp
primary
#2B137F
secondary
#99B439
accent
#F137C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F