#334A8B#334A8B
#334A8B is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.6% C 0.111 H 267.0°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).
Color values
| HEX | #334A8B |
|---|---|
| RGB | rgb(51, 74, 139) |
| HSL | hsl(224, 46%, 37%) |
| HSV | hsv(224, 63%, 55%) |
| CMYK | cmyk(63.3%, 46.8%, 0%, 45.5%) |
| CIE-LAB | lab(32.84, 12.83, -38.93) |
| CIE-LCH | lch(32.84, 40.99, 288.24°) |
| OKLab | oklab(42.56% -0.0059 -0.1111) |
| OKLCH | oklch(42.56% 0.111 267) |
| XYZ | xyz(8.4726, 7.4647, 25.4154) |
| Luminance | 0.0746 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.87
Dusk Blue
#26538D
ΔE00 4.84
Darkish Blue
#014182
ΔE00 5.36
Cobalt
#0047AB
ΔE00 5.38
Twilight
#4E518B
ΔE00 5.65
Denim Blue
#3B5B92
ΔE00 5.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334A8B #8B7433
analogous
#33768B #334A8B #48338B
triadic
#334A8B #8B334A #4A8B33
tetradic
#334A8B #8B3376 #8B7433 #338B48
square
#334A8B #8B3376 #8B7433 #338B48
split-complementary
#334A8B #8B4833 #768B33
monochromatic
#121A31 #23325E #334A8B #4362B8 #6E86CA
Accessibility & contrast
On white
8.42
#334A8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.49
#334A8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334A8B
8.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334A8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334A8B | 1.00 | 8.42 | 2.49 | 8.42 |
| #FFFFFF | 8.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B518D
Deuteranopia (green-blind)
#1D4A8A
Tritanopia (blue-blind)
#005963
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #334a8b; /* rgb */ color: rgb(51, 74, 139); /* oklch */ color: oklch(42.6% 0.111 267.0);
Tailwind
colors: {
custom: {
50: '#737cad',
500: '#334a8b',
950: '#000000',
},
}SCSS
$custom: #334a8b; $custom-light: #737cad; $custom-dark: #000000;
JSON
{
"hex": "#334a8b",
"rgb": {
"r": 51,
"g": 74,
"b": 139
},
"hsl": {
"h": 224.318,
"s": 46.316,
"l": 37.255
},
"oklch": {
"l": 0.42559,
"c": 0.1113,
"h": 267
},
"luminance": 0.07465
}Semantic roles & 50–950 ramp
primary
#334A8B
secondary
#B29F68
accent
#B352D6
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090910
muted
#7B7B7F