#334990#334990
#334990 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 42.7% C 0.120 H 268.1°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).
Color values
| HEX | #334990 |
|---|---|
| RGB | rgb(51, 73, 144) |
| HSL | hsl(226, 48%, 38%) |
| HSV | hsv(226, 65%, 56%) |
| CMYK | cmyk(64.6%, 49.3%, 0%, 43.5%) |
| CIE-LAB | lab(32.88, 15.34, -41.93) |
| CIE-LCH | lch(32.88, 44.65, 290.09°) |
| OKLab | oklab(42.69% -0.004 -0.12) |
| OKLCH | oklch(42.69% 0.12 268.1) |
| XYZ | xyz(8.7801, 7.4817, 27.3616) |
| Luminance | 0.0748 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.99
Cobalt
#0047AB
ΔE00 4.84
Dusk Blue
#26538D
ΔE00 5.31
Darkish Blue
#014182
ΔE00 5.62
Blueberry
#464196
ΔE00 5.62
Twilight
#4E518B
ΔE00 5.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334990 #907A33
analogous
#337790 #334990 #4B3390
triadic
#334990 #903349 #499033
tetradic
#334990 #903377 #907A33 #33904B
square
#334990 #903377 #907A33 #33904B
split-complementary
#334990 #904B33 #779033
monochromatic
#131B36 #233263 #334990 #4460BD #7187CD
Accessibility & contrast
On white
8.41
#334990 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.50
#334990 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334990
8.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334990 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334990 | 1.00 | 8.41 | 2.50 | 8.41 |
| #FFFFFF | 8.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#245293
Deuteranopia (green-blind)
#12498F
Tritanopia (blue-blind)
#005965
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #334990; /* rgb */ color: rgb(51, 73, 144); /* oklch */ color: oklch(42.7% 0.120 268.1);
Tailwind
colors: {
custom: {
50: '#747bb1',
500: '#334990',
950: '#000000',
},
}SCSS
$custom: #334990; $custom-light: #747bb1; $custom-dark: #000000;
JSON
{
"hex": "#334990",
"rgb": {
"r": 51,
"g": 73,
"b": 144
},
"hsl": {
"h": 225.806,
"s": 47.692,
"l": 38.235
},
"oklch": {
"l": 0.42692,
"c": 0.12006,
"h": 268.1
},
"luminance": 0.07483
}Semantic roles & 50–950 ramp
primary
#334990
secondary
#B5A36A
accent
#B751D7
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090911
muted
#7B7B80