#2A34B5#2A34B5
#2A34B5 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.5% C 0.199 H 270.7°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).
Color values
| HEX | #2A34B5 |
|---|---|
| RGB | rgb(42, 52, 181) |
| HSL | hsl(236, 62%, 44%) |
| HSV | hsv(236, 77%, 71%) |
| CMYK | cmyk(76.8%, 71.3%, 0%, 29%) |
| CIE-LAB | lab(30.12, 41.29, -68.76) |
| CIE-LCH | lch(30.12, 80.21, 300.99°) |
| OKLab | oklab(41.46% 0.0024 -0.1991) |
| OKLCH | oklch(41.46% 0.199 270.7) |
| XYZ | xyz(10.5205, 6.2833, 44.3654) |
| Luminance | 0.0628 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.30
Blue Blue
#2242C7
ΔE00 4.55
Ocean Blue
#4F42B5
ΔE00 5.39
Blue With A Hint Of Purple
#533CC6
ΔE00 5.77
Indigo Blue
#3A18B1
ΔE00 6.13
Blurple
#5539CC
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A34B5 #B5AB2A
analogous
#2A79B5 #2A34B5 #652AB5
triadic
#2A34B5 #B52A34 #34B52A
tetradic
#2A34B5 #B52A79 #B5AB2A #2AB565
square
#2A34B5 #B52A79 #B5AB2A #2AB565
split-complementary
#2A34B5 #B5652A #79B52A
monochromatic
#131752 #1E2683 #2A34B5 #4852D4 #7981E0
Accessibility & contrast
On white
9.31
#2A34B5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.26
#2A34B5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A34B5
9.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A34B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A34B5 | 1.00 | 9.31 | 2.26 | 9.31 |
| #FFFFFF | 9.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EB9
Deuteranopia (green-blind)
#0040B3
Tritanopia (blue-blind)
#005871
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #2a34b5; /* rgb */ color: rgb(42, 52, 181); /* oklch */ color: oklch(41.5% 0.199 270.7);
Tailwind
colors: {
custom: {
50: '#7b6ccc',
500: '#2a34b5',
950: '#000000',
},
}SCSS
$custom: #2a34b5; $custom-light: #7b6ccc; $custom-dark: #000000;
JSON
{
"hex": "#2a34b5",
"rgb": {
"r": 42,
"g": 52,
"b": 181
},
"hsl": {
"h": 235.683,
"s": 62.332,
"l": 43.725
},
"oklch": {
"l": 0.41463,
"c": 0.19908,
"h": 270.7
},
"luminance": 0.06284
}Semantic roles & 50–950 ramp
primary
#2A34B5
secondary
#C8C273
accent
#DA42E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0714
muted
#7C7A82