#2A38AF#2A38AF
#2A38AF is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.5% C 0.187 H 270.3°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).
Color values
| HEX | #2A38AF |
|---|---|
| RGB | rgb(42, 56, 175) |
| HSL | hsl(234, 61%, 43%) |
| HSV | hsv(234, 76%, 69%) |
| CMYK | cmyk(76%, 68%, 0%, 31.4%) |
| CIE-LAB | lab(30.44, 36.71, -64.66) |
| CIE-LCH | lch(30.44, 74.35, 299.58°) |
| OKLab | oklab(41.52% 0.001 -0.1871) |
| OKLCH | oklch(41.52% 0.187 270.3) |
| XYZ | xyz(10.1042, 6.4146, 41.2548) |
| Luminance | 0.0642 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.11
Blue Blue
#2242C7
ΔE00 4.18
Ocean Blue
#4F42B5
ΔE00 5.16
Blueberry
#464196
ΔE00 5.75
Blue With A Hint Of Purple
#533CC6
ΔE00 6.23
Cobalt
#0047AB
ΔE00 6.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A38AF #AFA12A
analogous
#2A7BAF #2A38AF #5E2AAF
triadic
#2A38AF #AF2A38 #38AF2A
tetradic
#2A38AF #AF2A7B #AFA12A #2AAF5E
square
#2A38AF #AF2A7B #AFA12A #2AAF5E
split-complementary
#2A38AF #AF5E2A #7BAF2A
monochromatic
#12184C #1E287E #2A38AF #4453D2 #7580DE
Accessibility & contrast
On white
9.20
#2A38AF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.28
#2A38AF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A38AF
9.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A38AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A38AF | 1.00 | 9.20 | 2.28 | 9.20 |
| #FFFFFF | 9.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#0041AD
Tritanopia (blue-blind)
#00586F
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #2a38af; /* rgb */ color: rgb(42, 56, 175); /* oklch */ color: oklch(41.5% 0.187 270.3);
Tailwind
colors: {
custom: {
50: '#796fc8',
500: '#2a38af',
950: '#000000',
},
}SCSS
$custom: #2a38af; $custom-light: #796fc8; $custom-dark: #000000;
JSON
{
"hex": "#2a38af",
"rgb": {
"r": 42,
"g": 56,
"b": 175
},
"hsl": {
"h": 233.684,
"s": 61.29,
"l": 42.549
},
"oklch": {
"l": 0.41517,
"c": 0.18711,
"h": 270.3
},
"luminance": 0.06416
}Semantic roles & 50–950 ramp
primary
#2A38AF
secondary
#C6BC6F
accent
#D343E4
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82