#334CA7#334CA7
#334CA7 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.1% C 0.149 H 268.2°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).
Color values
| HEX | #334CA7 |
|---|---|
| RGB | rgb(51, 76, 167) |
| HSL | hsl(227, 53%, 43%) |
| HSV | hsv(227, 69%, 65%) |
| CMYK | cmyk(69.5%, 54.5%, 0%, 34.5%) |
| CIE-LAB | lab(35.32, 21.86, -51.88) |
| CIE-LCH | lch(35.32, 56.30, 292.85°) |
| OKLab | oklab(45.06% -0.0046 -0.1492) |
| OKLCH | oklch(45.06% 0.149 268.2) |
| XYZ | xyz(10.9223, 8.6616, 37.6480) |
| Luminance | 0.0866 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.47
Sapphire
#0F52BA
ΔE00 4.24
Cobalt (survey)
#1E488F
ΔE00 4.66
Blue Blue
#2242C7
ΔE00 5.47
Dusk Blue
#26538D
ΔE00 6.00
Blueberry
#464196
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334CA7 #A78E33
analogous
#3386A7 #334CA7 #5433A7
triadic
#334CA7 #A7334C #4CA733
tetradic
#334CA7 #A73386 #A78E33 #33A754
square
#334CA7 #A73386 #A78E33 #33A754
split-complementary
#334CA7 #A75433 #86A733
monochromatic
#162149 #253778 #334CA7 #4E69C9 #7D91D7
Accessibility & contrast
On white
7.68
#334CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.73
#334CA7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334CA7
7.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334CA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334CA7 | 1.00 | 7.68 | 2.73 | 7.68 |
| #FFFFFF | 7.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0659AA
Deuteranopia (green-blind)
#004EA5
Tritanopia (blue-blind)
#006272
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #334ca7; /* rgb */ color: rgb(51, 76, 167); /* oklch */ color: oklch(45.1% 0.149 268.2);
Tailwind
colors: {
custom: {
50: '#797dc2',
500: '#334ca7',
950: '#000000',
},
}SCSS
$custom: #334ca7; $custom-light: #797dc2; $custom-dark: #000000;
JSON
{
"hex": "#334ca7",
"rgb": {
"r": 51,
"g": 76,
"b": 167
},
"hsl": {
"h": 227.069,
"s": 53.211,
"l": 42.745
},
"oklch": {
"l": 0.45058,
"c": 0.14929,
"h": 268.2
},
"luminance": 0.08663
}Semantic roles & 50–950 ramp
primary
#334CA7
secondary
#C0B076
accent
#BD4BDD
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0912
muted
#7C7B81