#334CA9#334CA9
#334CA9 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.2% C 0.152 H 268.3°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).
Color values
| HEX | #334CA9 |
|---|---|
| RGB | rgb(51, 76, 169) |
| HSL | hsl(227, 54%, 43%) |
| HSV | hsv(227, 70%, 66%) |
| CMYK | cmyk(69.8%, 55%, 0%, 33.7%) |
| CIE-LAB | lab(35.47, 22.60, -52.84) |
| CIE-LCH | lch(35.47, 57.47, 293.16°) |
| OKLab | oklab(45.22% -0.0044 -0.152) |
| OKLCH | oklch(45.22% 0.152 268.3) |
| XYZ | xyz(11.1086, 8.7362, 38.6292) |
| Luminance | 0.0874 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.49
Sapphire
#0F52BA
ΔE00 4.15
Cobalt (survey)
#1E488F
ΔE00 4.90
Blue Blue
#2242C7
ΔE00 5.22
Blueberry
#464196
ΔE00 6.07
Sapphire (survey)
#2138AB
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334CA9 #A99033
analogous
#3387A9 #334CA9 #5533A9
triadic
#334CA9 #A9334C #4CA933
tetradic
#334CA9 #A93387 #A99033 #33A955
square
#334CA9 #A93387 #A99033 #33A955
split-complementary
#334CA9 #A95533 #87A933
monochromatic
#17224B #25377A #334CA9 #4F69CA #7E91D8
Accessibility & contrast
On white
7.64
#334CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.75
#334CA9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334CA9
7.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334CA9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334CA9 | 1.00 | 7.64 | 2.75 | 7.64 |
| #FFFFFF | 7.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059AC
Deuteranopia (green-blind)
#004EA7
Tritanopia (blue-blind)
#006273
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #334ca9; /* rgb */ color: rgb(51, 76, 169); /* oklch */ color: oklch(45.2% 0.152 268.3);
Tailwind
colors: {
custom: {
50: '#797dc3',
500: '#334ca9',
950: '#000000',
},
}SCSS
$custom: #334ca9; $custom-light: #797dc3; $custom-dark: #000000;
JSON
{
"hex": "#334ca9",
"rgb": {
"r": 51,
"g": 76,
"b": 169
},
"hsl": {
"h": 227.288,
"s": 53.636,
"l": 43.137
},
"oklch": {
"l": 0.45215,
"c": 0.15209,
"h": 268.3
},
"luminance": 0.08737
}Semantic roles & 50–950 ramp
primary
#334CA9
secondary
#C1B177
accent
#BE4BDD
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82