#334D8F#334D8F
#334D8F is a dark, moderate blue. Relative luminance 0.080; OKLCH L 43.5% C 0.113 H 265.7°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).
Color values
| HEX | #334D8F |
|---|---|
| RGB | rgb(51, 77, 143) |
| HSL | hsl(223, 47%, 38%) |
| HSV | hsv(223, 64%, 56%) |
| CMYK | cmyk(64.3%, 46.2%, 0%, 43.9%) |
| CIE-LAB | lab(33.97, 12.30, -39.57) |
| CIE-LCH | lch(33.97, 41.44, 287.26°) |
| OKLab | oklab(43.51% -0.0084 -0.113) |
| OKLCH | oklch(43.51% 0.113 265.7) |
| XYZ | xyz(8.9753, 7.9939, 27.0513) |
| Luminance | 0.0799 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.77
Dusk Blue
#26538D
ΔE00 3.97
Denim Blue
#3B5B92
ΔE00 4.72
Cobalt
#0047AB
ΔE00 5.01
Darkish Blue
#014182
ΔE00 5.66
Twilight
#4E518B
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334D8F #8F7533
analogous
#337B8F #334D8F #47338F
triadic
#334D8F #8F334D #4D8F33
tetradic
#334D8F #8F337B #8F7533 #338F47
square
#334D8F #8F337B #8F7533 #338F47
split-complementary
#334D8F #8F4733 #7B8F33
monochromatic
#131C35 #233562 #334D8F #4365BC #708ACC
Accessibility & contrast
On white
8.08
#334D8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.60
#334D8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334D8F
8.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334D8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334D8F | 1.00 | 8.08 | 2.60 | 8.08 |
| #FFFFFF | 8.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2E5491
Deuteranopia (green-blind)
#1F4C8E
Tritanopia (blue-blind)
#005C67
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #334d8f; /* rgb */ color: rgb(51, 77, 143); /* oklch */ color: oklch(43.5% 0.113 265.7);
Tailwind
colors: {
custom: {
50: '#747eb0',
500: '#334d8f',
950: '#000000',
},
}SCSS
$custom: #334d8f; $custom-light: #747eb0; $custom-dark: #000000;
JSON
{
"hex": "#334d8f",
"rgb": {
"r": 51,
"g": 77,
"b": 143
},
"hsl": {
"h": 223.043,
"s": 47.423,
"l": 38.039
},
"oklch": {
"l": 0.43505,
"c": 0.1133,
"h": 265.7
},
"luminance": 0.07995
}Semantic roles & 50–950 ramp
primary
#334D8F
secondary
#B49F6A
accent
#B151D7
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#090910
muted
#7B7B7F