#2A38B3#2A38B3
#2A38B3 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.9% C 0.192 H 270.2°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).
Color values
| HEX | #2A38B3 |
|---|---|
| RGB | rgb(42, 56, 179) |
| HSL | hsl(234, 62%, 43%) |
| HSV | hsv(234, 77%, 70%) |
| CMYK | cmyk(76.5%, 68.7%, 0%, 29.8%) |
| CIE-LAB | lab(30.82, 38.14, -66.42) |
| CIE-LCH | lch(30.82, 76.59, 299.86°) |
| OKLab | oklab(41.91% 0.0006 -0.1922) |
| OKLCH | oklch(41.91% 0.192 270.2) |
| XYZ | xyz(10.5029, 6.5741, 43.3545) |
| Luminance | 0.0658 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.55
Blue Blue
#2242C7
ΔE00 3.82
Ocean Blue
#4F42B5
ΔE00 4.99
Blue With A Hint Of Purple
#533CC6
ΔE00 5.85
Blueberry
#464196
ΔE00 6.08
Blue (survey)
#0343DF
ΔE00 6.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A38B3 #B3A52A
analogous
#2A7CB3 #2A38B3 #612AB3
triadic
#2A38B3 #B32A38 #38B32A
tetradic
#2A38B3 #B32A7C #B3A52A #2AB361
square
#2A38B3 #B32A7C #B3A52A #2AB361
split-complementary
#2A38B3 #B3612A #7CB32A
monochromatic
#131950 #1E2881 #2A38B3 #4655D4 #7883DF
Accessibility & contrast
On white
9.07
#2A38B3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.32
#2A38B3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A38B3
9.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A38B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A38B3 | 1.00 | 9.07 | 2.32 | 9.07 |
| #FFFFFF | 9.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#0042B1
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #2a38b3; /* rgb */ color: rgb(42, 56, 179); /* oklch */ color: oklch(41.9% 0.192 270.2);
Tailwind
colors: {
custom: {
50: '#7a6fcb',
500: '#2a38b3',
950: '#000000',
},
}SCSS
$custom: #2a38b3; $custom-light: #7a6fcb; $custom-dark: #000000;
JSON
{
"hex": "#2a38b3",
"rgb": {
"r": 42,
"g": 56,
"b": 179
},
"hsl": {
"h": 233.869,
"s": 61.991,
"l": 43.333
},
"oklch": {
"l": 0.4191,
"c": 0.19224,
"h": 270.2
},
"luminance": 0.06575
}Semantic roles & 50–950 ramp
primary
#2A38B3
secondary
#C7BE72
accent
#D443E5
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82