#2A136C#2A136C
#2A136C is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.141 H 285.3°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).
Color values
| HEX | #2A136C |
|---|---|
| RGB | rgb(42, 19, 108) |
| HSL | hsl(256, 70%, 25%) |
| HSV | hsv(256, 82%, 42%) |
| CMYK | cmyk(61.1%, 82.4%, 0%, 57.6%) |
| CIE-LAB | lab(15.70, 35.73, -47.18) |
| CIE-LCH | lch(15.70, 59.19, 307.14°) |
| OKLab | oklab(28.94% 0.0372 -0.1359) |
| OKLCH | oklch(28.94% 0.141 285.3) |
| XYZ | xyz(3.8937, 2.0405, 14.3731) |
| Luminance | 0.0204 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.11
Dark Royal Blue
#02066F
ΔE00 4.33
Dark Indigo
#1F0954
ΔE00 4.36
Darkblue (survey)
#030764
ΔE00 4.39
Indigo (survey)
#380282
ΔE00 4.67
Deep Blue
#040273
ΔE00 4.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A136C #556C13
analogous
#13286C #2A136C #57136C
triadic
#2A136C #6C2A13 #136C2A
tetradic
#2A136C #6C1328 #556C13 #136C57
square
#2A136C #6C1328 #556C13 #136C57
split-complementary
#2A136C #6C5713 #286C13
monochromatic
#0A051A #160A38 #2A136C #3E1CA0 #5225D4
Accessibility & contrast
On white
14.91
#2A136C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.41
#2A136C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A136C
14.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A136C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A136C | 1.00 | 14.91 | 1.41 | 14.91 |
| #FFFFFF | 14.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00296E
Deuteranopia (green-blind)
#00246A
Tritanopia (blue-blind)
#062D3F
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #2a136c; /* rgb */ color: rgb(42, 19, 108); /* oklch */ color: oklch(28.9% 0.141 285.3);
Tailwind
colors: {
custom: {
50: '#6d5497',
500: '#2a136c',
950: '#000000',
},
}SCSS
$custom: #2a136c; $custom-light: #6d5497; $custom-dark: #000000;
JSON
{
"hex": "#2a136c",
"rgb": {
"r": 42,
"g": 19,
"b": 108
},
"hsl": {
"h": 255.506,
"s": 70.079,
"l": 24.902
},
"oklch": {
"l": 0.28938,
"c": 0.14094,
"h": 285.3
},
"luminance": 0.02041
}Semantic roles & 50–950 ramp
primary
#2A136C
secondary
#87A338
accent
#ED3BBF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E