#2A38B9#2A38B9
#2A38B9 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.5% C 0.200 H 270.0°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).
Color values
| HEX | #2A38B9 |
|---|---|
| RGB | rgb(42, 56, 185) |
| HSL | hsl(234, 63%, 45%) |
| HSV | hsv(234, 77%, 73%) |
| CMYK | cmyk(77.3%, 69.7%, 0%, 27.5%) |
| CIE-LAB | lab(31.40, 40.26, -69.02) |
| CIE-LCH | lch(31.40, 79.91, 300.26°) |
| OKLab | oklab(42.51% 0 -0.1998) |
| OKLCH | oklch(42.51% 0.2 270) |
| XYZ | xyz(11.1230, 6.8221, 46.6201) |
| Luminance | 0.0682 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.29
Blue Blue
#2242C7
ΔE00 3.38
Ocean Blue
#4F42B5
ΔE00 4.85
Blue With A Hint Of Purple
#533CC6
ΔE00 5.34
Blue (survey)
#0343DF
ΔE00 5.64
Blurple
#5539CC
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A38B9 #B9AB2A
analogous
#2A80B9 #2A38B9 #642AB9
triadic
#2A38B9 #B92A38 #38B92A
tetradic
#2A38B9 #B92A80 #B9AB2A #2AB964
square
#2A38B9 #B92A80 #B9AB2A #2AB964
split-complementary
#2A38B9 #B9642A #80B92A
monochromatic
#131A55 #1F2987 #2A38B9 #4A58D6 #7C86E1
Accessibility & contrast
On white
8.88
#2A38B9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.36
#2A38B9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A38B9
8.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A38B9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A38B9 | 1.00 | 8.88 | 2.36 | 8.88 |
| #FFFFFF | 8.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051BD
Deuteranopia (green-blind)
#0043B7
Tritanopia (blue-blind)
#005C74
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #2a38b9; /* rgb */ color: rgb(42, 56, 185); /* oklch */ color: oklch(42.5% 0.200 270.0);
Tailwind
colors: {
custom: {
50: '#7b6fcf',
500: '#2a38b9',
950: '#000000',
},
}SCSS
$custom: #2a38b9; $custom-light: #7b6fcf; $custom-dark: #000000;
JSON
{
"hex": "#2a38b9",
"rgb": {
"r": 42,
"g": 56,
"b": 185
},
"hsl": {
"h": 234.126,
"s": 62.996,
"l": 44.51
},
"oklch": {
"l": 0.42507,
"c": 0.19983,
"h": 270
},
"luminance": 0.06823
}Semantic roles & 50–950 ramp
primary
#2A38B9
secondary
#CAC175
accent
#D642E6
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82