#334A9B#334A9B
#334A9B is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.7% C 0.135 H 268.4°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).
Color values
| HEX | #334A9B |
|---|---|
| RGB | rgb(51, 74, 155) |
| HSL | hsl(227, 50%, 40%) |
| HSV | hsv(227, 67%, 61%) |
| CMYK | cmyk(67.1%, 52.3%, 0%, 39.2%) |
| CIE-LAB | lab(33.91, 18.74, -46.95) |
| CIE-LCH | lch(33.91, 50.55, 291.76°) |
| OKLab | oklab(43.72% -0.0037 -0.1347) |
| OKLCH | oklch(43.72% 0.135 268.4) |
| XYZ | xyz(9.7284, 7.9670, 32.0291) |
| Luminance | 0.0797 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.54
Cobalt
#0047AB
ΔE00 3.86
Blueberry
#464196
ΔE00 5.42
Sapphire
#0F52BA
ΔE00 5.49
Dusk Blue
#26538D
ΔE00 5.57
Denim Blue
#3B5B92
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334A9B #9B8433
analogous
#337E9B #334A9B #50339B
triadic
#334A9B #9B334A #4A9B33
tetradic
#334A9B #9B337E #9B8433 #339B50
square
#334A9B #9B337E #9B8433 #339B50
split-complementary
#334A9B #9B5033 #7E9B33
monochromatic
#151E3F #24346D #334A9B #4863C3 #768BD2
Accessibility & contrast
On white
8.10
#334A9B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.59
#334A9B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334A9B
8.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334A9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334A9B | 1.00 | 8.10 | 2.59 | 8.10 |
| #FFFFFF | 8.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#19559E
Deuteranopia (green-blind)
#004B99
Tritanopia (blue-blind)
#005D6B
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #334a9b; /* rgb */ color: rgb(51, 74, 155); /* oklch */ color: oklch(43.7% 0.135 268.4);
Tailwind
colors: {
custom: {
50: '#777cb9',
500: '#334a9b',
950: '#000000',
},
}SCSS
$custom: #334a9b; $custom-light: #777cb9; $custom-dark: #000000;
JSON
{
"hex": "#334a9b",
"rgb": {
"r": 51,
"g": 74,
"b": 155
},
"hsl": {
"h": 226.731,
"s": 50.485,
"l": 40.392
},
"oklch": {
"l": 0.43719,
"c": 0.13479,
"h": 268.4
},
"luminance": 0.07968
}Semantic roles & 50–950 ramp
primary
#334A9B
secondary
#BAAA6F
accent
#BB4EDA
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090911
muted
#7B7B80