#2A38A8#2A38A8
#2A38A8 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.8% C 0.178 H 270.5°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).
Color values
| HEX | #2A38A8 |
|---|---|
| RGB | rgb(42, 56, 168) |
| HSL | hsl(233, 60%, 41%) |
| HSV | hsv(233, 75%, 66%) |
| CMYK | cmyk(75%, 66.7%, 0%, 34.1%) |
| CIE-LAB | lab(29.78, 34.18, -61.54) |
| CIE-LCH | lch(29.78, 70.40, 299.05°) |
| OKLab | oklab(40.84% 0.0015 -0.178) |
| OKLCH | oklch(40.84% 0.178 270.5) |
| XYZ | xyz(9.4345, 6.1467, 37.7274) |
| Luminance | 0.0615 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 0.84
Blue Blue
#2242C7
ΔE00 4.89
Blueberry
#464196
ΔE00 5.24
Ocean Blue
#4F42B5
ΔE00 5.56
Cobalt
#0047AB
ΔE00 6.35
Darkslateblue
#483D8B
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A38A8 #A89A2A
analogous
#2A77A8 #2A38A8 #5B2AA8
triadic
#2A38A8 #A82A38 #38A82A
tetradic
#2A38A8 #A82A77 #A89A2A #2AA85B
square
#2A38A8 #A82A77 #A89A2A #2AA85B
split-complementary
#2A38A8 #A85B2A #77A82A
monochromatic
#121746 #1E2877 #2A38A8 #4050CF #717DDB
Accessibility & contrast
On white
9.42
#2A38A8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#2A38A8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A38A8
9.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A38A8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A38A8 | 1.00 | 9.42 | 2.23 | 9.42 |
| #FFFFFF | 9.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#0040A6
Tritanopia (blue-blind)
#00566B
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #2a38a8; /* rgb */ color: rgb(42, 56, 168); /* oklch */ color: oklch(40.8% 0.178 270.5);
Tailwind
colors: {
custom: {
50: '#776fc3',
500: '#2a38a8',
950: '#000000',
},
}SCSS
$custom: #2a38a8; $custom-light: #776fc3; $custom-dark: #000000;
JSON
{
"hex": "#2a38a8",
"rgb": {
"r": 42,
"g": 56,
"b": 168
},
"hsl": {
"h": 233.333,
"s": 60,
"l": 41.176
},
"oklch": {
"l": 0.4084,
"c": 0.17801,
"h": 270.5
},
"luminance": 0.06148
}Semantic roles & 50–950 ramp
primary
#2A38A8
secondary
#C3B96B
accent
#D245E3
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82