#2B137B#2B137B
#2B137B is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.159 H 282.2°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).
Color values
| HEX | #2B137B |
|---|---|
| RGB | rgb(43, 19, 123) |
| HSL | hsl(254, 73%, 28%) |
| HSV | hsv(254, 85%, 48%) |
| CMYK | cmyk(65%, 84.6%, 0%, 51.8%) |
| CIE-LAB | lab(17.50, 40.45, -53.90) |
| CIE-LCH | lch(17.50, 67.39, 306.89°) |
| OKLab | oklab(30.72% 0.0338 -0.1555) |
| OKLCH | oklch(30.72% 0.159 282.2) |
| XYZ | xyz(4.8032, 2.4090, 18.9469) |
| Luminance | 0.0241 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.09
Midnight Blue
#191970
ΔE00 3.50
Navy
#000080
ΔE00 4.31
Deep Blue
#040273
ΔE00 4.35
Dark Royal Blue
#02066F
ΔE00 4.36
Royal
#0C1793
ΔE00 4.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B137B #637B13
analogous
#132F7B #2B137B #5F137B
triadic
#2B137B #7B2B13 #137B2B
tetradic
#2B137B #7B132F #637B13 #137B5F
square
#2B137B #7B132F #637B13 #137B5F
split-complementary
#2B137B #7B5F13 #2F7B13
monochromatic
#09041B #180B46 #2B137B #3E1BB0 #542ADE
Accessibility & contrast
On white
14.17
#2B137B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#2B137B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B137B
14.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B137B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B137B | 1.00 | 14.17 | 1.48 | 14.17 |
| #FFFFFF | 14.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002779
Tritanopia (blue-blind)
#003348
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2b137b; /* rgb */ color: rgb(43, 19, 123); /* oklch */ color: oklch(30.7% 0.159 282.2);
Tailwind
colors: {
custom: {
50: '#7155a2',
500: '#2b137b',
950: '#000000',
},
}SCSS
$custom: #2b137b; $custom-light: #7155a2; $custom-dark: #000000;
JSON
{
"hex": "#2b137b",
"rgb": {
"r": 43,
"g": 19,
"b": 123
},
"hsl": {
"h": 253.846,
"s": 73.239,
"l": 27.843
},
"oklch": {
"l": 0.30718,
"c": 0.15909,
"h": 282.2
},
"luminance": 0.02409
}Semantic roles & 50–950 ramp
primary
#2B137B
secondary
#95B139
accent
#F038C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F