#334AA2#334AA2
#334AA2 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.3% C 0.145 H 268.8°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).
Color values
| HEX | #334AA2 |
|---|---|
| RGB | rgb(51, 74, 162) |
| HSL | hsl(228, 52%, 42%) |
| HSV | hsv(228, 69%, 64%) |
| CMYK | cmyk(68.5%, 54.3%, 0%, 36.5%) |
| CIE-LAB | lab(34.41, 21.33, -50.36) |
| CIE-LCH | lch(34.41, 54.70, 292.96°) |
| OKLab | oklab(44.26% -0.0031 -0.1448) |
| OKLCH | oklch(44.26% 0.145 268.8) |
| XYZ | xyz(10.3334, 8.2090, 35.2153) |
| Luminance | 0.0821 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.53
Cobalt (survey)
#1E488F
ΔE00 4.25
Sapphire
#0F52BA
ΔE00 4.98
Blueberry
#464196
ΔE00 5.39
Blue Blue
#2242C7
ΔE00 5.76
Sapphire (survey)
#2138AB
ΔE00 5.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334AA2 #A28B33
analogous
#3382A2 #334AA2 #5433A2
triadic
#334AA2 #A2334A #4AA233
tetradic
#334AA2 #A23382 #A28B33 #33A254
square
#334AA2 #A23382 #A28B33 #33A254
split-complementary
#334AA2 #A25433 #82A233
monochromatic
#161F45 #243573 #334AA2 #4C65C7 #7A8DD5
Accessibility & contrast
On white
7.95
#334AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.64
#334AA2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334AA2
7.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334AA2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334AA2 | 1.00 | 7.95 | 2.64 | 7.95 |
| #FFFFFF | 7.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0A56A5
Deuteranopia (green-blind)
#004CA0
Tritanopia (blue-blind)
#005F6E
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #334aa2; /* rgb */ color: rgb(51, 74, 162); /* oklch */ color: oklch(44.3% 0.145 268.8);
Tailwind
colors: {
custom: {
50: '#787cbe',
500: '#334aa2',
950: '#000000',
},
}SCSS
$custom: #334aa2; $custom-light: #787cbe; $custom-dark: #000000;
JSON
{
"hex": "#334aa2",
"rgb": {
"r": 51,
"g": 74,
"b": 162
},
"hsl": {
"h": 227.568,
"s": 52.113,
"l": 41.765
},
"oklch": {
"l": 0.44256,
"c": 0.1448,
"h": 268.8
},
"luminance": 0.0821
}Semantic roles & 50–950 ramp
primary
#334AA2
secondary
#BEAE73
accent
#BE4CDC
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81