#2A438C#2A438C
#2A438C is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.6% C 0.125 H 266.6°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).
Color values
| HEX | #2A438C |
|---|---|
| RGB | rgb(42, 67, 140) |
| HSL | hsl(225, 54%, 36%) |
| HSV | hsv(225, 70%, 55%) |
| CMYK | cmyk(70%, 52.1%, 0%, 45.1%) |
| CIE-LAB | lab(30.40, 16.30, -43.50) |
| CIE-LCH | lch(30.40, 46.45, 290.54°) |
| OKLab | oklab(40.59% -0.0074 -0.1249) |
| OKLCH | oklch(40.59% 0.125 266.6) |
| XYZ | xyz(7.6940, 6.3992, 25.6356) |
| Luminance | 0.0640 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.88
Darkish Blue
#014182
ΔE00 4.47
Cobalt
#0047AB
ΔE00 4.83
Twilight Blue
#0A437A
ΔE00 5.33
Blueberry
#464196
ΔE00 5.76
Dusk Blue
#26538D
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A438C #8C732A
analogous
#2A748C #2A438C #422A8C
triadic
#2A438C #8C2A43 #438C2A
tetradic
#2A438C #8C2A74 #8C732A #2A8C42
square
#2A438C #8C2A74 #8C732A #2A8C42
split-complementary
#2A438C #8C422A #748C2A
monochromatic
#0E162E #1C2C5D #2A438C #385ABB #617DD0
Accessibility & contrast
On white
9.21
#2A438C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.28
#2A438C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A438C
9.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A438C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A438C | 1.00 | 9.21 | 2.28 | 9.21 |
| #FFFFFF | 9.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#184C8F
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#005461
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #2a438c; /* rgb */ color: rgb(42, 67, 140); /* oklch */ color: oklch(40.6% 0.125 266.6);
Tailwind
colors: {
custom: {
50: '#7076ae',
500: '#2a438c',
950: '#000000',
},
}SCSS
$custom: #2a438c; $custom-light: #7076ae; $custom-dark: #000000;
JSON
{
"hex": "#2a438c",
"rgb": {
"r": 42,
"g": 67,
"b": 140
},
"hsl": {
"h": 224.694,
"s": 53.846,
"l": 35.686
},
"oklch": {
"l": 0.40586,
"c": 0.1251,
"h": 266.6
},
"luminance": 0.064
}Semantic roles & 50–950 ramp
primary
#2A438C
secondary
#B59F5C
accent
#B84BDD
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F