#334C97#334C97
#334C97 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.9% C 0.126 H 267.2°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).
Color values
| HEX | #334C97 |
|---|---|
| RGB | rgb(51, 76, 151) |
| HSL | hsl(225, 50%, 40%) |
| HSV | hsv(225, 66%, 59%) |
| CMYK | cmyk(66.2%, 49.7%, 0%, 40.8%) |
| CIE-LAB | lab(34.20, 15.92, -44.07) |
| CIE-LCH | lch(34.20, 46.85, 289.87°) |
| OKLab | oklab(43.85% -0.0062 -0.1262) |
| OKLCH | oklch(43.85% 0.126 267.2) |
| XYZ | xyz(9.5337, 8.1062, 30.3344) |
| Luminance | 0.0811 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 3.07
Cobalt
#0047AB
ΔE00 4.19
Dusk Blue
#26538D
ΔE00 4.70
Denim Blue
#3B5B92
ΔE00 5.26
Sapphire
#0F52BA
ΔE00 5.47
Twilight
#4E518B
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334C97 #977E33
analogous
#337E97 #334C97 #4C3397
triadic
#334C97 #97334C #4C9733
tetradic
#334C97 #97337E #977E33 #33974C
square
#334C97 #97337E #977E33 #33974C
split-complementary
#334C97 #974C33 #7E9733
monochromatic
#141E3C #243569 #334C97 #4765C1 #748BD0
Accessibility & contrast
On white
8.01
#334C97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.62
#334C97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334C97
8.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334C97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334C97 | 1.00 | 8.01 | 2.62 | 8.01 |
| #FFFFFF | 8.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#24559A
Deuteranopia (green-blind)
#0C4C95
Tritanopia (blue-blind)
#005D6A
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #334c97; /* rgb */ color: rgb(51, 76, 151); /* oklch */ color: oklch(43.9% 0.126 267.2);
Tailwind
colors: {
custom: {
50: '#767db6',
500: '#334c97',
950: '#000000',
},
}SCSS
$custom: #334c97; $custom-light: #767db6; $custom-dark: #000000;
JSON
{
"hex": "#334c97",
"rgb": {
"r": 51,
"g": 76,
"b": 151
},
"hsl": {
"h": 225,
"s": 49.505,
"l": 39.608
},
"oklch": {
"l": 0.43851,
"c": 0.12637,
"h": 267.2
},
"luminance": 0.08107
}Semantic roles & 50–950 ramp
primary
#334C97
secondary
#B8A66D
accent
#B64FD9
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090911
muted
#7B7B80