#2A136B#2A136B
#2A136B is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.140 H 285.6°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).
Color values
| HEX | #2A136B |
|---|---|
| RGB | rgb(42, 19, 107) |
| HSL | hsl(256, 70%, 25%) |
| HSV | hsv(256, 82%, 42%) |
| CMYK | cmyk(60.7%, 82.2%, 0%, 58%) |
| CIE-LAB | lab(15.59, 35.42, -46.71) |
| CIE-LCH | lch(15.59, 58.62, 307.18°) |
| OKLab | oklab(28.83% 0.0376 -0.1345) |
| OKLCH | oklch(28.83% 0.14 285.6) |
| XYZ | xyz(3.8408, 2.0193, 14.0944) |
| Luminance | 0.0202 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.16
Dark Indigo
#1F0954
ΔE00 4.22
Darkblue (survey)
#030764
ΔE00 4.39
Dark Royal Blue
#02066F
ΔE00 4.40
Deep Blue
#040273
ΔE00 4.78
Indigo (survey)
#380282
ΔE00 4.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A136B #546B13
analogous
#13286B #2A136B #56136B
triadic
#2A136B #6B2A13 #136B2A
tetradic
#2A136B #6B1328 #546B13 #136B56
square
#2A136B #6B1328 #546B13 #136B56
split-complementary
#2A136B #6B5613 #286B13
monochromatic
#0A051A #160A37 #2A136B #3E1C9F #5325D3
Accessibility & contrast
On white
14.96
#2A136B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.40
#2A136B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A136B
14.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A136B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A136B | 1.00 | 14.96 | 1.40 | 14.96 |
| #FFFFFF | 14.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00296D
Deuteranopia (green-blind)
#002469
Tritanopia (blue-blind)
#082D3F
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #2a136b; /* rgb */ color: rgb(42, 19, 107); /* oklch */ color: oklch(28.8% 0.140 285.6);
Tailwind
colors: {
custom: {
50: '#6d5496',
500: '#2a136b',
950: '#000000',
},
}SCSS
$custom: #2a136b; $custom-light: #6d5496; $custom-dark: #000000;
JSON
{
"hex": "#2a136b",
"rgb": {
"r": 42,
"g": 19,
"b": 107
},
"hsl": {
"h": 255.682,
"s": 69.841,
"l": 24.706
},
"oklch": {
"l": 0.28828,
"c": 0.1397,
"h": 285.6
},
"luminance": 0.0202
}Semantic roles & 50–950 ramp
primary
#2A136B
secondary
#86A238
accent
#ED3BBE
background
#F6F5F9
surface
#ECE8F2
border
#C7C4CC
text
#08030D
muted
#7B787E