#334C8B#334C8B
#334C8B is a dark, moderate blue. Relative luminance 0.077; OKLCH L 43.0% C 0.109 H 265.7°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).
Color values
| HEX | #334C8B |
|---|---|
| RGB | rgb(51, 76, 139) |
| HSL | hsl(223, 46%, 37%) |
| HSV | hsv(223, 63%, 55%) |
| CMYK | cmyk(63.3%, 45.3%, 0%, 45.5%) |
| CIE-LAB | lab(33.43, 11.49, -38.00) |
| CIE-LCH | lch(33.43, 39.70, 286.83°) |
| OKLab | oklab(43.01% -0.0081 -0.1084) |
| OKLCH | oklch(43.01% 0.109 265.7) |
| XYZ | xyz(8.6083, 7.7360, 25.4606) |
| Luminance | 0.0774 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.79
Dusk Blue
#26538D
ΔE00 4.17
Denim Blue
#3B5B92
ΔE00 5.06
Cobalt
#0047AB
ΔE00 5.40
Darkish Blue
#014182
ΔE00 5.42
Twilight Blue
#0A437A
ΔE00 5.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334C8B #8B7233
analogous
#33788B #334C8B #46338B
triadic
#334C8B #8B334C #4C8B33
tetradic
#334C8B #8B3378 #8B7233 #338B46
square
#334C8B #8B3378 #8B7233 #338B46
split-complementary
#334C8B #8B4633 #788B33
monochromatic
#121B31 #23345E #334C8B #4364B8 #6E88CA
Accessibility & contrast
On white
8.24
#334C8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.55
#334C8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334C8B
8.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334C8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334C8B | 1.00 | 8.24 | 2.55 | 8.24 |
| #FFFFFF | 8.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2F538D
Deuteranopia (green-blind)
#214B8A
Tritanopia (blue-blind)
#005A64
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #334c8b; /* rgb */ color: rgb(51, 76, 139); /* oklch */ color: oklch(43.0% 0.109 265.7);
Tailwind
colors: {
custom: {
50: '#737dad',
500: '#334c8b',
950: '#000000',
},
}SCSS
$custom: #334c8b; $custom-light: #737dad; $custom-dark: #000000;
JSON
{
"hex": "#334c8b",
"rgb": {
"r": 51,
"g": 76,
"b": 139
},
"hsl": {
"h": 222.955,
"s": 46.316,
"l": 37.255
},
"oklch": {
"l": 0.43007,
"c": 0.10867,
"h": 265.7
},
"luminance": 0.07737
}Semantic roles & 50–950 ramp
primary
#334C8B
secondary
#B29D68
accent
#B052D6
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090910
muted
#7B7B7F