#2A418B#2A418B
#2A418B is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.1% C 0.126 H 267.4°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).
Color values
| HEX | #2A418B |
|---|---|
| RGB | rgb(42, 65, 139) |
| HSL | hsl(226, 54%, 35%) |
| HSV | hsv(226, 70%, 55%) |
| CMYK | cmyk(69.8%, 53.2%, 0%, 45.5%) |
| CIE-LAB | lab(29.75, 17.28, -43.92) |
| CIE-LCH | lch(29.75, 47.20, 291.48°) |
| OKLab | oklab(40.07% -0.0057 -0.1262) |
| OKLCH | oklch(40.07% 0.126 267.4) |
| XYZ | xyz(7.5037, 6.1362, 25.2100) |
| Luminance | 0.0614 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.51
Darkish Blue
#014182
ΔE00 4.73
Cobalt
#0047AB
ΔE00 5.22
Blueberry
#464196
ΔE00 5.46
Twilight Blue
#0A437A
ΔE00 5.65
Sapphire (survey)
#2138AB
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A418B #8B742A
analogous
#2A718B #2A418B #432A8B
triadic
#2A418B #8B2A41 #418B2A
tetradic
#2A418B #8B2A71 #8B742A #2A8B43
square
#2A418B #8B2A71 #8B742A #2A8B43
split-complementary
#2A418B #8B432A #718B2A
monochromatic
#0E152D #1C2B5C #2A418B #3857BA #607BCF
Accessibility & contrast
On white
9.43
#2A418B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#2A418B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A418B
9.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A418B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A418B | 1.00 | 9.43 | 2.23 | 9.43 |
| #FFFFFF | 9.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#124B8E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#00535F
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #2a418b; /* rgb */ color: rgb(42, 65, 139); /* oklch */ color: oklch(40.1% 0.126 267.4);
Tailwind
colors: {
custom: {
50: '#7075ad',
500: '#2a418b',
950: '#000000',
},
}SCSS
$custom: #2a418b; $custom-light: #7075ad; $custom-dark: #000000;
JSON
{
"hex": "#2a418b",
"rgb": {
"r": 42,
"g": 65,
"b": 139
},
"hsl": {
"h": 225.773,
"s": 53.591,
"l": 35.49
},
"oklch": {
"l": 0.40074,
"c": 0.12629,
"h": 267.4
},
"luminance": 0.06137
}Semantic roles & 50–950 ramp
primary
#2A418B
secondary
#B5A05C
accent
#BA4BDD
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F