#334F9F#334F9F
#334F9F is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.1% C 0.134 H 266.5°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).
Color values
| HEX | #334F9F |
|---|---|
| RGB | rgb(51, 79, 159) |
| HSL | hsl(224, 51%, 41%) |
| HSV | hsv(224, 68%, 62%) |
| CMYK | cmyk(67.9%, 50.3%, 0%, 37.6%) |
| CIE-LAB | lab(35.59, 16.90, -46.66) |
| CIE-LCH | lch(35.59, 49.62, 289.91°) |
| OKLab | oklab(45.08% -0.0081 -0.1338) |
| OKLCH | oklch(45.08% 0.134 266.5) |
| XYZ | xyz(10.4171, 8.7980, 33.9434) |
| Luminance | 0.0880 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.78
Cobalt
#0047AB
ΔE00 3.92
Sapphire
#0F52BA
ΔE00 4.23
Dusk Blue
#26538D
ΔE00 4.51
Denim Blue
#3B5B92
ΔE00 4.64
Dusky Blue
#475F94
ΔE00 5.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334F9F #9F8333
analogous
#33859F #334F9F #4D339F
triadic
#334F9F #9F334F #4F9F33
tetradic
#334F9F #9F3385 #9F8333 #339F4D
square
#334F9F #9F3385 #9F8333 #339F4D
split-complementary
#334F9F #9F4D33 #859F33
monochromatic
#152142 #243871 #334F9F #4A6AC5 #7990D4
Accessibility & contrast
On white
7.61
#334F9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.76
#334F9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334F9F
7.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334F9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334F9F | 1.00 | 7.61 | 2.76 | 7.61 |
| #FFFFFF | 7.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2259A2
Deuteranopia (green-blind)
#014F9D
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #334f9f; /* rgb */ color: rgb(51, 79, 159); /* oklch */ color: oklch(45.1% 0.134 266.5);
Tailwind
colors: {
custom: {
50: '#777fbc',
500: '#334f9f',
950: '#000000',
},
}SCSS
$custom: #334f9f; $custom-light: #777fbc; $custom-dark: #000000;
JSON
{
"hex": "#334f9f",
"rgb": {
"r": 51,
"g": 79,
"b": 159
},
"hsl": {
"h": 224.444,
"s": 51.429,
"l": 41.176
},
"oklch": {
"l": 0.45082,
"c": 0.13404,
"h": 266.5
},
"luminance": 0.08799
}Semantic roles & 50–950 ramp
primary
#334F9F
secondary
#BCA971
accent
#B64DDB
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A12
muted
#7C7C81