#334BC2#334BC2
#334BC2 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 47.1% C 0.187 H 269.1°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).
Color values
| HEX | #334BC2 |
|---|---|
| RGB | rgb(51, 75, 194) |
| HSL | hsl(230, 58%, 48%) |
| HSV | hsv(230, 74%, 76%) |
| CMYK | cmyk(73.7%, 61.3%, 0%, 23.9%) |
| CIE-LAB | lab(37.17, 32.44, -64.83) |
| CIE-LCH | lch(37.17, 72.49, 296.58°) |
| OKLab | oklab(47.1% -0.0031 -0.1873) |
| OKLCH | oklch(47.1% 0.187 269.1) |
| XYZ | xyz(13.6156, 9.6296, 52.1696) |
| Luminance | 0.0963 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.76
Blue (survey)
#0343DF
ΔE00 4.10
Sapphire
#0F52BA
ΔE00 4.82
Ocean Blue
#4F42B5
ΔE00 5.30
Cobalt
#0047AB
ΔE00 5.30
Warm Blue
#4B57DB
ΔE00 5.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334BC2 #C2AA33
analogous
#3392C2 #334BC2 #6233C2
triadic
#334BC2 #C2334B #4BC233
tetradic
#334BC2 #C23392 #C2AA33 #33C262
square
#334BC2 #C23392 #C2AA33 #33C262
split-complementary
#334BC2 #C26233 #92C233
monochromatic
#1A2661 #263892 #334BC2 #5E72D5 #8E9CE1
Accessibility & contrast
On white
7.18
#334BC2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.93
#334BC2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334BC2
7.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334BC2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334BC2 | 1.00 | 7.18 | 2.93 | 7.18 |
| #FFFFFF | 7.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EC6
Deuteranopia (green-blind)
#0051C0
Tritanopia (blue-blind)
#00697F
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #334bc2; /* rgb */ color: rgb(51, 75, 194); /* oklch */ color: oklch(47.1% 0.187 269.1);
Tailwind
colors: {
custom: {
50: '#7f7dd5',
500: '#334bc2',
950: '#000000',
},
}SCSS
$custom: #334bc2; $custom-light: #7f7dd5; $custom-dark: #000000;
JSON
{
"hex": "#334bc2",
"rgb": {
"r": 51,
"g": 75,
"b": 194
},
"hsl": {
"h": 229.93,
"s": 58.367,
"l": 48.039
},
"oklch": {
"l": 0.47096,
"c": 0.18729,
"h": 269.1
},
"luminance": 0.09631
}Semantic roles & 50–950 ramp
primary
#334BC2
secondary
#CCC085
accent
#C846E2
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0914
muted
#7D7B83