#2A189F#2A189F
#2A189F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.4% C 0.198 H 275.3°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).
Color values
| HEX | #2A189F |
|---|---|
| RGB | rgb(42, 24, 159) |
| HSL | hsl(248, 74%, 36%) |
| HSV | hsv(248, 85%, 62%) |
| CMYK | cmyk(73.6%, 84.9%, 0%, 37.6%) |
| CIE-LAB | lab(22.47, 48.99, -68.15) |
| CIE-LCH | lch(22.47, 83.93, 305.71°) |
| OKLab | oklab(35.37% 0.0183 -0.197) |
| OKLCH | oklch(35.37% 0.198 275.3) |
| XYZ | xyz(7.5374, 3.6480, 33.1011) |
| Luminance | 0.0365 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt Blue
#030AA7
ΔE00 2.71
Royal
#0C1793
ΔE00 2.85
Indigo Blue
#3A18B1
ΔE00 3.06
Royal Blue (survey)
#0504AA
ΔE00 3.09
Ultramarine
#2000B1
ΔE00 3.21
Darkblue
#00008B
ΔE00 5.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A189F #8D9F18
analogous
#18499F #2A189F #6D189F
triadic
#2A189F #9F2A18 #189F2A
tetradic
#2A189F #9F1849 #8D9F18 #189F6D
square
#2A189F #9F1849 #8D9F18 #189F6D
split-complementary
#2A189F #9F6D18 #499F18
monochromatic
#0E0835 #1C106A #2A189F #3820D4 #614DE4
Accessibility & contrast
On white
12.14
#2A189F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#2A189F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A189F
12.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A189F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A189F | 1.00 | 12.14 | 1.73 | 12.14 |
| #FFFFFF | 12.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003BA3
Deuteranopia (green-blind)
#00309D
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2a189f; /* rgb */ color: rgb(42, 24, 159); /* oklch */ color: oklch(35.4% 0.198 275.3);
Tailwind
colors: {
custom: {
50: '#785bbd',
500: '#2a189f',
950: '#000000',
},
}SCSS
$custom: #2a189f; $custom-light: #785bbd; $custom-dark: #000000;
JSON
{
"hex": "#2a189f",
"rgb": {
"r": 42,
"g": 24,
"b": 159
},
"hsl": {
"h": 248,
"s": 73.77,
"l": 35.882
},
"oklch": {
"l": 0.35368,
"c": 0.19782,
"h": 275.3
},
"luminance": 0.03649
}Semantic roles & 50–950 ramp
primary
#2A189F
secondary
#B6C64D
accent
#F037D8
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981