#334C8F#334C8F
#334C8F is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.3% C 0.115 H 266.3°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).
Color values
| HEX | #334C8F |
|---|---|
| RGB | rgb(51, 76, 143) |
| HSL | hsl(224, 47%, 38%) |
| HSV | hsv(224, 64%, 56%) |
| CMYK | cmyk(64.3%, 46.9%, 0%, 43.9%) |
| CIE-LAB | lab(33.68, 12.96, -40.04) |
| CIE-LCH | lch(33.68, 42.09, 287.94°) |
| OKLab | oklab(43.28% -0.0074 -0.1144) |
| OKLCH | oklch(43.28% 0.115 266.3) |
| XYZ | xyz(8.9059, 7.8551, 27.0281) |
| Luminance | 0.0786 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.75
Dusk Blue
#26538D
ΔE00 4.29
Cobalt
#0047AB
ΔE00 4.96
Denim Blue
#3B5B92
ΔE00 5.07
Darkish Blue
#014182
ΔE00 5.60
Twilight
#4E518B
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334C8F #8F7633
analogous
#337A8F #334C8F #48338F
triadic
#334C8F #8F334C #4C8F33
tetradic
#334C8F #8F337A #8F7633 #338F48
square
#334C8F #8F337A #8F7633 #338F48
split-complementary
#334C8F #8F4833 #7A8F33
monochromatic
#131C35 #233462 #334C8F #4364BC #7089CC
Accessibility & contrast
On white
8.17
#334C8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.57
#334C8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334C8F
8.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334C8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334C8F | 1.00 | 8.17 | 2.57 | 8.17 |
| #FFFFFF | 8.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2C5492
Deuteranopia (green-blind)
#1C4B8E
Tritanopia (blue-blind)
#005B66
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #334c8f; /* rgb */ color: rgb(51, 76, 143); /* oklch */ color: oklch(43.3% 0.115 266.3);
Tailwind
colors: {
custom: {
50: '#747db0',
500: '#334c8f',
950: '#000000',
},
}SCSS
$custom: #334c8f; $custom-light: #747db0; $custom-dark: #000000;
JSON
{
"hex": "#334c8f",
"rgb": {
"r": 51,
"g": 76,
"b": 143
},
"hsl": {
"h": 223.696,
"s": 47.423,
"l": 38.039
},
"oklch": {
"l": 0.43282,
"c": 0.11462,
"h": 266.3
},
"luminance": 0.07856
}Semantic roles & 50–950 ramp
primary
#334C8F
secondary
#B4A06A
accent
#B351D7
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#090910
muted
#7B7B7F