#2A418C#2A418C
#2A418C is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.2% C 0.128 H 267.5°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).
Color values
| HEX | #2A418C |
|---|---|
| RGB | rgb(42, 65, 140) |
| HSL | hsl(226, 54%, 36%) |
| HSV | hsv(226, 70%, 55%) |
| CMYK | cmyk(70%, 53.6%, 0%, 45.1%) |
| CIE-LAB | lab(29.83, 17.66, -44.42) |
| CIE-LCH | lch(29.83, 47.81, 291.68°) |
| OKLab | oklab(40.15% -0.0056 -0.1276) |
| OKLCH | oklch(40.15% 0.128 267.5) |
| XYZ | xyz(7.5771, 6.1655, 25.5966) |
| Luminance | 0.0617 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.52
Darkish Blue
#014182
ΔE00 4.80
Cobalt
#0047AB
ΔE00 5.12
Blueberry
#464196
ΔE00 5.37
Twilight Blue
#0A437A
ΔE00 5.74
Sapphire (survey)
#2138AB
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A418C #8C752A
analogous
#2A728C #2A418C #442A8C
triadic
#2A418C #8C2A41 #418C2A
tetradic
#2A418C #8C2A72 #8C752A #2A8C44
square
#2A418C #8C2A72 #8C752A #2A8C44
split-complementary
#2A418C #8C442A #728C2A
monochromatic
#0E152E #1C2B5D #2A418C #3857BB #617BD0
Accessibility & contrast
On white
9.40
#2A418C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#2A418C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A418C
9.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A418C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A418C | 1.00 | 9.40 | 2.23 | 9.40 |
| #FFFFFF | 9.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#114B8F
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #2a418c; /* rgb */ color: rgb(42, 65, 140); /* oklch */ color: oklch(40.2% 0.128 267.5);
Tailwind
colors: {
custom: {
50: '#7075ae',
500: '#2a418c',
950: '#000000',
},
}SCSS
$custom: #2a418c; $custom-light: #7075ae; $custom-dark: #000000;
JSON
{
"hex": "#2a418c",
"rgb": {
"r": 42,
"g": 65,
"b": 140
},
"hsl": {
"h": 225.918,
"s": 53.846,
"l": 35.686
},
"oklch": {
"l": 0.40153,
"c": 0.12775,
"h": 267.5
},
"luminance": 0.06166
}Semantic roles & 50–950 ramp
primary
#2A418C
secondary
#B5A15C
accent
#BB4BDD
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F