#334CB1#334CB1
#334CB1 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.9% C 0.163 H 268.6°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).
Color values
| HEX | #334CB1 |
|---|---|
| RGB | rgb(51, 76, 177) |
| HSL | hsl(228, 55%, 45%) |
| HSV | hsv(228, 71%, 69%) |
| CMYK | cmyk(71.2%, 57.1%, 0%, 30.6%) |
| CIE-LAB | lab(36.07, 25.56, -56.62) |
| CIE-LCH | lch(36.07, 62.12, 294.30°) |
| OKLab | oklab(45.86% -0.004 -0.1631) |
| OKLCH | oklch(45.86% 0.163 268.6) |
| XYZ | xyz(11.8828, 9.0458, 42.7062) |
| Luminance | 0.0905 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.80
Sapphire
#0F52BA
ΔE00 3.99
Blue Blue
#2242C7
ΔE00 4.29
Cobalt (survey)
#1E488F
ΔE00 5.89
Sapphire (survey)
#2138AB
ΔE00 6.03
Ocean Blue
#4F42B5
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334CB1 #B19833
analogous
#338BB1 #334CB1 #5933B1
triadic
#334CB1 #B1334C #4CB133
tetradic
#334CB1 #B1338B #B19833 #33B159
square
#334CB1 #B1338B #B19833 #33B159
split-complementary
#334CB1 #B15933 #8BB133
monochromatic
#182352 #253881 #334CB1 #546CCE #8395DB
Accessibility & contrast
On white
7.47
#334CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.81
#334CB1 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334CB1
7.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334CB1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334CB1 | 1.00 | 7.47 | 2.81 | 7.47 |
| #FFFFFF | 7.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BB4
Deuteranopia (green-blind)
#004FAF
Tritanopia (blue-blind)
#006577
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #334cb1; /* rgb */ color: rgb(51, 76, 177); /* oklch */ color: oklch(45.9% 0.163 268.6);
Tailwind
colors: {
custom: {
50: '#7b7dc9',
500: '#334cb1',
950: '#000000',
},
}SCSS
$custom: #334cb1; $custom-light: #7b7dc9; $custom-dark: #000000;
JSON
{
"hex": "#334cb1",
"rgb": {
"r": 51,
"g": 76,
"b": 177
},
"hsl": {
"h": 228.095,
"s": 55.263,
"l": 44.706
},
"oklch": {
"l": 0.45856,
"c": 0.1632,
"h": 268.6
},
"luminance": 0.09047
}Semantic roles & 50–950 ramp
primary
#334CB1
secondary
#C5B67B
accent
#C149DF
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82