#334CA6#334CA6
#334CA6 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 45.0% C 0.148 H 268.2°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).
Color values
| HEX | #334CA6 |
|---|---|
| RGB | rgb(51, 76, 166) |
| HSL | hsl(227, 53%, 43%) |
| HSV | hsv(227, 69%, 65%) |
| CMYK | cmyk(69.3%, 54.2%, 0%, 34.9%) |
| CIE-LAB | lab(35.25, 21.49, -51.41) |
| CIE-LCH | lch(35.25, 55.72, 292.69°) |
| OKLab | oklab(44.98% -0.0046 -0.1478) |
| OKLCH | oklch(44.98% 0.148 268.2) |
| XYZ | xyz(10.8302, 8.6248, 37.1630) |
| Luminance | 0.0863 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.47
Sapphire
#0F52BA
ΔE00 4.29
Cobalt (survey)
#1E488F
ΔE00 4.54
Blue Blue
#2242C7
ΔE00 5.60
Dusk Blue
#26538D
ΔE00 5.91
Blueberry
#464196
ΔE00 6.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334CA6 #A68D33
analogous
#3385A6 #334CA6 #5433A6
triadic
#334CA6 #A6334C #4CA633
tetradic
#334CA6 #A63385 #A68D33 #33A654
square
#334CA6 #A63385 #A68D33 #33A654
split-complementary
#334CA6 #A65433 #85A633
monochromatic
#162148 #253777 #334CA6 #4E68C9 #7C90D7
Accessibility & contrast
On white
7.71
#334CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.73
#334CA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334CA6
7.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334CA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334CA6 | 1.00 | 7.71 | 2.73 | 7.71 |
| #FFFFFF | 7.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0A58A9
Deuteranopia (green-blind)
#004EA4
Tritanopia (blue-blind)
#006271
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #334ca6; /* rgb */ color: rgb(51, 76, 166); /* oklch */ color: oklch(45.0% 0.148 268.2);
Tailwind
colors: {
custom: {
50: '#797dc1',
500: '#334ca6',
950: '#000000',
},
}SCSS
$custom: #334ca6; $custom-light: #797dc1; $custom-dark: #000000;
JSON
{
"hex": "#334ca6",
"rgb": {
"r": 51,
"g": 76,
"b": 166
},
"hsl": {
"h": 226.957,
"s": 52.995,
"l": 42.549
},
"oklch": {
"l": 0.4498,
"c": 0.14788,
"h": 268.2
},
"luminance": 0.08626
}Semantic roles & 50–950 ramp
primary
#334CA6
secondary
#C0AF75
accent
#BD4BDC
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81