#334FB3#334FB3
#334FB3 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.6% C 0.162 H 267.8°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).
Color values
| HEX | #334FB3 |
|---|---|
| RGB | rgb(51, 79, 179) |
| HSL | hsl(227, 56%, 45%) |
| HSV | hsv(227, 72%, 70%) |
| CMYK | cmyk(71.5%, 55.9%, 0%, 29.8%) |
| CIE-LAB | lab(37.02, 24.33, -56.26) |
| CIE-LCH | lch(37.02, 61.30, 293.39°) |
| OKLab | oklab(46.62% -0.0063 -0.162) |
| OKLCH | oklch(46.62% 0.162 267.8) |
| XYZ | xyz(12.2951, 9.5492, 43.8343) |
| Luminance | 0.0955 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.28
Cobalt
#0047AB
ΔE00 4.06
Blue Blue
#2242C7
ΔE00 4.88
Cobalt (survey)
#1E488F
ΔE00 6.06
Denim Blue
#3B5B92
ΔE00 6.30
Blue (survey)
#0343DF
ΔE00 6.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334FB3 #B39733
analogous
#338FB3 #334FB3 #5733B3
triadic
#334FB3 #B3334F #4FB333
tetradic
#334FB3 #B3338F #B39733 #33B357
square
#334FB3 #B3338F #B39733 #33B357
split-complementary
#334FB3 #B35733 #8FB333
monochromatic
#182554 #253A83 #334FB3 #556FCE #8498DC
Accessibility & contrast
On white
7.22
#334FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.91
#334FB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334FB3
7.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334FB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334FB3 | 1.00 | 7.22 | 2.91 | 7.22 |
| #FFFFFF | 7.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#0051B1
Tritanopia (blue-blind)
#006779
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #334fb3; /* rgb */ color: rgb(51, 79, 179); /* oklch */ color: oklch(46.6% 0.162 267.8);
Tailwind
colors: {
custom: {
50: '#7b7fca',
500: '#334fb3',
950: '#000000',
},
}SCSS
$custom: #334fb3; $custom-light: #7b7fca; $custom-dark: #000000;
JSON
{
"hex": "#334fb3",
"rgb": {
"r": 51,
"g": 79,
"b": 179
},
"hsl": {
"h": 226.875,
"s": 55.652,
"l": 45.098
},
"oklch": {
"l": 0.46616,
"c": 0.16217,
"h": 267.8
},
"luminance": 0.0955
}Semantic roles & 50–950 ramp
primary
#334FB3
secondary
#C6B67C
accent
#BE49DF
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82