#334D9F#334D9F
#334D9F is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.7% C 0.137 H 267.4°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).
Color values
| HEX | #334D9F |
|---|---|
| RGB | rgb(51, 77, 159) |
| HSL | hsl(226, 51%, 41%) |
| HSV | hsv(226, 68%, 62%) |
| CMYK | cmyk(67.9%, 51.6%, 0%, 37.6%) |
| CIE-LAB | lab(35.03, 18.23, -47.56) |
| CIE-LCH | lch(35.03, 50.94, 290.97°) |
| OKLab | oklab(44.66% -0.0062 -0.1365) |
| OKLCH | oklch(44.66% 0.137 267.4) |
| XYZ | xyz(10.2750, 8.5138, 33.8960) |
| Luminance | 0.0852 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.71
Cobalt (survey)
#1E488F
ΔE00 3.74
Sapphire
#0F52BA
ΔE00 4.56
Dusk Blue
#26538D
ΔE00 5.02
Denim Blue
#3B5B92
ΔE00 5.30
Blueberry
#464196
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334D9F #9F8533
analogous
#33839F #334D9F #4F339F
triadic
#334D9F #9F334D #4D9F33
tetradic
#334D9F #9F3383 #9F8533 #339F4F
square
#334D9F #9F3383 #9F8533 #339F4F
split-complementary
#334D9F #9F4F33 #839F33
monochromatic
#152042 #243771 #334D9F #4A68C5 #798FD4
Accessibility & contrast
On white
7.77
#334D9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.70
#334D9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334D9F
7.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334D9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334D9F | 1.00 | 7.77 | 2.70 | 7.77 |
| #FFFFFF | 7.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1D58A2
Deuteranopia (green-blind)
#004E9D
Tritanopia (blue-blind)
#00606E
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #334d9f; /* rgb */ color: rgb(51, 77, 159); /* oklch */ color: oklch(44.7% 0.137 267.4);
Tailwind
colors: {
custom: {
50: '#777ebc',
500: '#334d9f',
950: '#000000',
},
}SCSS
$custom: #334d9f; $custom-light: #777ebc; $custom-dark: #000000;
JSON
{
"hex": "#334d9f",
"rgb": {
"r": 51,
"g": 77,
"b": 159
},
"hsl": {
"h": 225.556,
"s": 51.429,
"l": 41.176
},
"oklch": {
"l": 0.44655,
"c": 0.13663,
"h": 267.4
},
"luminance": 0.08515
}Semantic roles & 50–950 ramp
primary
#334D9F
secondary
#BCAA71
accent
#B94DDB
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0912
muted
#7C7B81