#334CAB#334CAB
#334CAB is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.4% C 0.155 H 268.4°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).
Color values
| HEX | #334CAB |
|---|---|
| RGB | rgb(51, 76, 171) |
| HSL | hsl(228, 54%, 44%) |
| HSV | hsv(228, 70%, 67%) |
| CMYK | cmyk(70.2%, 55.6%, 0%, 32.9%) |
| CIE-LAB | lab(35.62, 23.34, -53.79) |
| CIE-LCH | lch(35.62, 58.64, 293.46°) |
| OKLab | oklab(45.37% -0.0043 -0.1548) |
| OKLCH | oklch(45.37% 0.155 268.4) |
| XYZ | xyz(11.2978, 8.8118, 39.6256) |
| Luminance | 0.0881 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.53
Sapphire
#0F52BA
ΔE00 4.08
Blue Blue
#2242C7
ΔE00 4.98
Cobalt (survey)
#1E488F
ΔE00 5.14
Sapphire (survey)
#2138AB
ΔE00 6.11
Blueberry
#464196
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334CAB #AB9233
analogous
#3388AB #334CAB #5633AB
triadic
#334CAB #AB334C #4CAB33
tetradic
#334CAB #AB3388 #AB9233 #33AB56
square
#334CAB #AB3388 #AB9233 #33AB56
split-complementary
#334CAB #AB5633 #88AB33
monochromatic
#17224D #25377C #334CAB #506ACB #7F92D9
Accessibility & contrast
On white
7.60
#334CAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.76
#334CAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334CAB
7.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334CAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334CAB | 1.00 | 7.60 | 2.76 | 7.60 |
| #FFFFFF | 7.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059AE
Deuteranopia (green-blind)
#004FA9
Tritanopia (blue-blind)
#006374
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #334cab; /* rgb */ color: rgb(51, 76, 171); /* oklch */ color: oklch(45.4% 0.155 268.4);
Tailwind
colors: {
custom: {
50: '#7a7dc5',
500: '#334cab',
950: '#000000',
},
}SCSS
$custom: #334cab; $custom-light: #7a7dc5; $custom-dark: #000000;
JSON
{
"hex": "#334cab",
"rgb": {
"r": 51,
"g": 76,
"b": 171
},
"hsl": {
"h": 227.5,
"s": 54.054,
"l": 43.529
},
"oklch": {
"l": 0.45374,
"c": 0.15489,
"h": 268.4
},
"luminance": 0.08813
}Semantic roles & 50–950 ramp
primary
#334CAB
secondary
#C2B378
accent
#BF4ADD
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82