#2B137C#2B137C
#2B137C is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.160 H 282.0°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).
Color values
| HEX | #2B137C |
|---|---|
| RGB | rgb(43, 19, 124) |
| HSL | hsl(254, 73%, 28%) |
| HSV | hsv(254, 85%, 49%) |
| CMYK | cmyk(65.3%, 84.7%, 0%, 51.4%) |
| CIE-LAB | lab(17.62, 40.75, -54.34) |
| CIE-LCH | lch(17.62, 67.93, 306.87°) |
| OKLab | oklab(30.83% 0.0334 -0.1568) |
| OKLCH | oklch(30.83% 0.16 282) |
| XYZ | xyz(4.8661, 2.4342, 19.2783) |
| Luminance | 0.0244 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.04
Midnight Blue
#191970
ΔE00 3.57
Royal
#0C1793
ΔE00 4.23
Navy
#000080
ΔE00 4.27
Deep Blue
#040273
ΔE00 4.38
Dark Royal Blue
#02066F
ΔE00 4.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B137C #647C13
analogous
#132F7C #2B137C #5F137C
triadic
#2B137C #7C2B13 #137C2B
tetradic
#2B137C #7C132F #647C13 #137C5F
square
#2B137C #7C132F #647C13 #137C5F
split-complementary
#2B137C #7C5F13 #2F7C13
monochromatic
#09041B #190B47 #2B137C #3D1BB1 #542BDF
Accessibility & contrast
On white
14.12
#2B137C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#2B137C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B137C
14.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B137C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B137C | 1.00 | 14.12 | 1.49 | 14.12 |
| #FFFFFF | 14.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00277A
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2b137c; /* rgb */ color: rgb(43, 19, 124); /* oklch */ color: oklch(30.8% 0.160 282.0);
Tailwind
colors: {
custom: {
50: '#7155a3',
500: '#2b137c',
950: '#000000',
},
}SCSS
$custom: #2b137c; $custom-light: #7155a3; $custom-dark: #000000;
JSON
{
"hex": "#2b137c",
"rgb": {
"r": 43,
"g": 19,
"b": 124
},
"hsl": {
"h": 253.714,
"s": 73.427,
"l": 28.039
},
"oklch": {
"l": 0.30832,
"c": 0.16029,
"h": 282
},
"luminance": 0.02435
}Semantic roles & 50–950 ramp
primary
#2B137C
secondary
#96B239
accent
#F038C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F