#2A38B5#2A38B5
#2A38B5 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.1% C 0.195 H 270.1°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).
Color values
| HEX | #2A38B5 |
|---|---|
| RGB | rgb(42, 56, 181) |
| HSL | hsl(234, 62%, 44%) |
| HSV | hsv(234, 77%, 71%) |
| CMYK | cmyk(76.8%, 69.1%, 0%, 29%) |
| CIE-LAB | lab(31.01, 38.85, -67.29) |
| CIE-LCH | lch(31.01, 77.70, 300.00°) |
| OKLab | oklab(42.11% 0.0004 -0.1948) |
| OKLCH | oklch(42.11% 0.195 270.1) |
| XYZ | xyz(10.7067, 6.6556, 44.4275) |
| Luminance | 0.0666 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.79
Blue Blue
#2242C7
ΔE00 3.66
Ocean Blue
#4F42B5
ΔE00 4.93
Blue With A Hint Of Purple
#533CC6
ΔE00 5.67
Blue (survey)
#0343DF
ΔE00 6.06
Blueberry
#464196
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A38B5 #B5A72A
analogous
#2A7DB5 #2A38B5 #612AB5
triadic
#2A38B5 #B52A38 #38B52A
tetradic
#2A38B5 #B52A7D #B5A72A #2AB561
square
#2A38B5 #B52A7D #B5A72A #2AB561
split-complementary
#2A38B5 #B5612A #7DB52A
monochromatic
#131952 #1E2983 #2A38B5 #4856D4 #7984E0
Accessibility & contrast
On white
9.01
#2A38B5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.33
#2A38B5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A38B5
9.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A38B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A38B5 | 1.00 | 9.01 | 2.33 | 9.01 |
| #FFFFFF | 9.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#0042B3
Tritanopia (blue-blind)
#005A72
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #2a38b5; /* rgb */ color: rgb(42, 56, 181); /* oklch */ color: oklch(42.1% 0.195 270.1);
Tailwind
colors: {
custom: {
50: '#7a6fcc',
500: '#2a38b5',
950: '#000000',
},
}SCSS
$custom: #2a38b5; $custom-light: #7a6fcc; $custom-dark: #000000;
JSON
{
"hex": "#2a38b5",
"rgb": {
"r": 42,
"g": 56,
"b": 181
},
"hsl": {
"h": 233.957,
"s": 62.332,
"l": 43.725
},
"oklch": {
"l": 0.42108,
"c": 0.19478,
"h": 270.1
},
"luminance": 0.06657
}Semantic roles & 50–950 ramp
primary
#2A38B5
secondary
#C8BF73
accent
#D542E5
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82