#2A38B7#2A38B7
#2A38B7 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.3% C 0.197 H 270.1°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).
Color values
| HEX | #2A38B7 |
|---|---|
| RGB | rgb(42, 56, 183) |
| HSL | hsl(234, 63%, 44%) |
| HSV | hsv(234, 77%, 72%) |
| CMYK | cmyk(77%, 69.4%, 0%, 28.2%) |
| CIE-LAB | lab(31.20, 39.56, -68.16) |
| CIE-LCH | lch(31.20, 78.80, 300.13°) |
| OKLab | oklab(42.31% 0.0002 -0.1973) |
| OKLCH | oklch(42.31% 0.197 270.1) |
| XYZ | xyz(10.9133, 6.7383, 45.5160) |
| Luminance | 0.0674 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.04
Blue Blue
#2242C7
ΔE00 3.51
Ocean Blue
#4F42B5
ΔE00 4.88
Blue With A Hint Of Purple
#533CC6
ΔE00 5.50
Blue (survey)
#0343DF
ΔE00 5.85
Blurple
#5539CC
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A38B7 #B7A92A
analogous
#2A7FB7 #2A38B7 #632AB7
triadic
#2A38B7 #B72A38 #38B72A
tetradic
#2A38B7 #B72A7F #B7A92A #2AB763
square
#2A38B7 #B72A7F #B7A92A #2AB763
split-complementary
#2A38B7 #B7632A #7FB72A
monochromatic
#131A53 #1F2985 #2A38B7 #4957D5 #7B85E1
Accessibility & contrast
On white
8.94
#2A38B7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.35
#2A38B7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A38B7
8.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A38B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A38B7 | 1.00 | 8.94 | 2.35 | 8.94 |
| #FFFFFF | 8.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#0043B5
Tritanopia (blue-blind)
#005B73
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #2a38b7; /* rgb */ color: rgb(42, 56, 183); /* oklch */ color: oklch(42.3% 0.197 270.1);
Tailwind
colors: {
custom: {
50: '#7b6fce',
500: '#2a38b7',
950: '#000000',
},
}SCSS
$custom: #2a38b7; $custom-light: #7b6fce; $custom-dark: #000000;
JSON
{
"hex": "#2a38b7",
"rgb": {
"r": 42,
"g": 56,
"b": 183
},
"hsl": {
"h": 234.043,
"s": 62.667,
"l": 44.118
},
"oklch": {
"l": 0.42307,
"c": 0.19731,
"h": 270.1
},
"luminance": 0.06739
}Semantic roles & 50–950 ramp
primary
#2A38B7
secondary
#C9C074
accent
#D542E6
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82