#2A137F#2A137F
#2A137F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.164 H 280.8°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).
Color values
| HEX | #2A137F |
|---|---|
| RGB | rgb(42, 19, 127) |
| HSL | hsl(253, 74%, 29%) |
| HSV | hsv(253, 85%, 50%) |
| CMYK | cmyk(66.9%, 85%, 0%, 50.2%) |
| CIE-LAB | lab(17.87, 41.56, -55.84) |
| CIE-LCH | lch(17.87, 69.61, 306.66°) |
| OKLab | oklab(31.09% 0.0307 -0.1611) |
| OKLCH | oklch(31.09% 0.164 280.8) |
| XYZ | xyz(5.0173, 2.4899, 20.2908) |
| Luminance | 0.0249 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.02
Midnight Blue
#191970
ΔE00 3.75
Royal
#0C1793
ΔE00 3.77
Navy
#000080
ΔE00 4.10
Darkblue
#00008B
ΔE00 4.12
Deep Blue
#040273
ΔE00 4.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A137F #687F13
analogous
#13327F #2A137F #60137F
triadic
#2A137F #7F2A13 #137F2A
tetradic
#2A137F #7F1332 #687F13 #137F60
square
#2A137F #7F1332 #687F13 #137F60
split-complementary
#2A137F #7F6013 #327F13
monochromatic
#09041B #180B4A #2A137F #3C1BB4 #532DE0
Accessibility & contrast
On white
14.02
#2A137F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2A137F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A137F
14.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A137F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A137F | 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)
#00354A
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2a137f; /* rgb */ color: rgb(42, 19, 127); /* oklch */ color: oklch(31.1% 0.164 280.8);
Tailwind
colors: {
custom: {
50: '#7156a5',
500: '#2a137f',
950: '#000000',
},
}SCSS
$custom: #2a137f; $custom-light: #7156a5; $custom-dark: #000000;
JSON
{
"hex": "#2a137f",
"rgb": {
"r": 42,
"g": 19,
"b": 127
},
"hsl": {
"h": 252.778,
"s": 73.973,
"l": 28.627
},
"oklch": {
"l": 0.31087,
"c": 0.16405,
"h": 280.8
},
"luminance": 0.0249
}Semantic roles & 50–950 ramp
primary
#2A137F
secondary
#9AB439
accent
#F137C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F