#334F9C#334F9C
#334F9C is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.9% C 0.130 H 266.2°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).
Color values
| HEX | #334F9C |
|---|---|
| RGB | rgb(51, 79, 156) |
| HSL | hsl(224, 51%, 41%) |
| HSV | hsv(224, 67%, 61%) |
| CMYK | cmyk(67.3%, 49.4%, 0%, 38.8%) |
| CIE-LAB | lab(35.39, 15.78, -45.18) |
| CIE-LCH | lch(35.39, 47.86, 289.26°) |
| OKLab | oklab(44.86% -0.0085 -0.1294) |
| OKLCH | oklch(44.86% 0.13 266.2) |
| XYZ | xyz(10.1599, 8.6951, 32.5889) |
| Luminance | 0.0870 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.52
Cobalt
#0047AB
ΔE00 4.09
Dusk Blue
#26538D
ΔE00 4.23
Denim Blue
#3B5B92
ΔE00 4.46
Sapphire
#0F52BA
ΔE00 4.52
Dusky Blue
#475F94
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334F9C #9C8033
analogous
#33839C #334F9C #4B339C
triadic
#334F9C #9C334F #4F9C33
tetradic
#334F9C #9C3383 #9C8033 #339C4B
square
#334F9C #9C3383 #9C8033 #339C4B
split-complementary
#334F9C #9C4B33 #839C33
monochromatic
#152040 #24386E #334F9C #4969C3 #778FD3
Accessibility & contrast
On white
7.67
#334F9C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.74
#334F9C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334F9C
7.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334F9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334F9C | 1.00 | 7.67 | 2.74 | 7.67 |
| #FFFFFF | 7.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#26589F
Deuteranopia (green-blind)
#0C4F9A
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #334f9c; /* rgb */ color: rgb(51, 79, 156); /* oklch */ color: oklch(44.9% 0.130 266.2);
Tailwind
colors: {
custom: {
50: '#777fba',
500: '#334f9c',
950: '#000000',
},
}SCSS
$custom: #334f9c; $custom-light: #777fba; $custom-dark: #000000;
JSON
{
"hex": "#334f9c",
"rgb": {
"r": 51,
"g": 79,
"b": 156
},
"hsl": {
"h": 224,
"s": 50.725,
"l": 40.588
},
"oklch": {
"l": 0.44863,
"c": 0.12972,
"h": 266.2
},
"luminance": 0.08696
}Semantic roles & 50–950 ramp
primary
#334F9C
secondary
#BBA770
accent
#B54EDA
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80