#334AAF#334AAF
#334AAF is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.3% C 0.163 H 269.1°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).
Color values
| HEX | #334AAF |
|---|---|
| RGB | rgb(51, 74, 175) |
| HSL | hsl(229, 55%, 44%) |
| HSV | hsv(229, 71%, 69%) |
| CMYK | cmyk(70.9%, 57.7%, 0%, 31.4%) |
| CIE-LAB | lab(35.39, 26.14, -56.54) |
| CIE-LCH | lch(35.39, 62.29, 294.81°) |
| OKLab | oklab(45.3% -0.0025 -0.1629) |
| OKLCH | oklch(45.3% 0.163 269.1) |
| XYZ | xyz(11.5492, 8.6954, 41.6188) |
| Luminance | 0.0870 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.73
Blue Blue
#2242C7
ΔE00 4.07
Sapphire
#0F52BA
ΔE00 4.53
Sapphire (survey)
#2138AB
ΔE00 5.40
Ocean Blue
#4F42B5
ΔE00 5.66
Cobalt (survey)
#1E488F
ΔE00 5.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334AAF #AF9833
analogous
#3388AF #334AAF #5A33AF
triadic
#334AAF #AF334A #4AAF33
tetradic
#334AAF #AF3388 #AF9833 #33AF5A
square
#334AAF #AF3388 #AF9833 #33AF5A
split-complementary
#334AAF #AF5A33 #88AF33
monochromatic
#172250 #253680 #334AAF #5269CD #8292DB
Accessibility & contrast
On white
7.67
#334AAF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.74
#334AAF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334AAF
7.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334AAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334AAF | 1.00 | 7.67 | 2.74 | 7.67 |
| #FFFFFF | 7.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#004EAD
Tritanopia (blue-blind)
#006375
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #334aaf; /* rgb */ color: rgb(51, 74, 175); /* oklch */ color: oklch(45.3% 0.163 269.1);
Tailwind
colors: {
custom: {
50: '#7b7cc8',
500: '#334aaf',
950: '#000000',
},
}SCSS
$custom: #334aaf; $custom-light: #7b7cc8; $custom-dark: #000000;
JSON
{
"hex": "#334aaf",
"rgb": {
"r": 51,
"g": 74,
"b": 175
},
"hsl": {
"h": 228.871,
"s": 54.867,
"l": 44.314
},
"oklch": {
"l": 0.45298,
"c": 0.16296,
"h": 269.1
},
"luminance": 0.08697
}Semantic roles & 50–950 ramp
primary
#334AAF
secondary
#C4B67A
accent
#C34ADE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82