#334897#334897
#334897 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.0% C 0.132 H 269.0°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).
Color values
| HEX | #334897 |
|---|---|
| RGB | rgb(51, 72, 151) |
| HSL | hsl(227, 50%, 40%) |
| HSV | hsv(227, 66%, 59%) |
| CMYK | cmyk(66.2%, 52.3%, 0%, 40.8%) |
| CIE-LAB | lab(33.08, 18.59, -45.88) |
| CIE-LCH | lch(33.08, 49.51, 292.06°) |
| OKLab | oklab(43% -0.0022 -0.1316) |
| OKLCH | oklch(43% 0.132 269) |
| XYZ | xyz(9.2666, 7.5721, 30.2454) |
| Luminance | 0.0757 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.50
Cobalt
#0047AB
ΔE00 4.23
Blueberry
#464196
ΔE00 4.96
Dusk Blue
#26538D
ΔE00 5.95
Sapphire (survey)
#2138AB
ΔE00 6.13
Darkish Blue
#014182
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334897 #978233
analogous
#337A97 #334897 #503397
triadic
#334897 #973348 #489733
tetradic
#334897 #97337A #978233 #339750
square
#334897 #97337A #978233 #339750
split-complementary
#334897 #975033 #7A9733
monochromatic
#141C3C #243269 #334897 #4760C1 #7488D0
Accessibility & contrast
On white
8.35
#334897 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.51
#334897 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334897
8.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334897 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334897 | 1.00 | 8.35 | 2.51 | 8.35 |
| #FFFFFF | 8.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#19539A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #334897; /* rgb */ color: rgb(51, 72, 151); /* oklch */ color: oklch(43.0% 0.132 269.0);
Tailwind
colors: {
custom: {
50: '#767ab6',
500: '#334897',
950: '#000000',
},
}SCSS
$custom: #334897; $custom-light: #767ab6; $custom-dark: #000000;
JSON
{
"hex": "#334897",
"rgb": {
"r": 51,
"g": 72,
"b": 151
},
"hsl": {
"h": 227.4,
"s": 49.505,
"l": 39.608
},
"oklch": {
"l": 0.42995,
"c": 0.13164,
"h": 269
},
"luminance": 0.07573
}Semantic roles & 50–950 ramp
primary
#334897
secondary
#B8A96D
accent
#BC4FD9
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090911
muted
#7B7B80