#334DC2#334DC2
#334DC2 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.5% C 0.185 H 268.6°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).
Color values
| HEX | #334DC2 |
|---|---|
| RGB | rgb(51, 77, 194) |
| HSL | hsl(229, 58%, 48%) |
| HSV | hsv(229, 74%, 76%) |
| CMYK | cmyk(73.7%, 60.3%, 0%, 23.9%) |
| CIE-LAB | lab(37.67, 31.16, -64.01) |
| CIE-LCH | lch(37.67, 71.19, 295.95°) |
| OKLab | oklab(47.47% -0.0044 -0.1848) |
| OKLCH | oklch(47.47% 0.185 268.6) |
| XYZ | xyz(13.7534, 9.9051, 52.2155) |
| Luminance | 0.0991 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 3.34
Sapphire
#0F52BA
ΔE00 4.36
Blue (survey)
#0343DF
ΔE00 4.44
Cobalt
#0047AB
ΔE00 5.27
Warm Blue
#4B57DB
ΔE00 5.39
Ocean Blue
#4F42B5
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#334DC2 #C2A833
analogous
#3394C2 #334DC2 #6033C2
triadic
#334DC2 #C2334D #4DC233
tetradic
#334DC2 #C23394 #C2A833 #33C260
square
#334DC2 #C23394 #C2A833 #33C260
split-complementary
#334DC2 #C26033 #94C233
monochromatic
#1A2761 #263A92 #334DC2 #5E73D5 #8E9DE1
Accessibility & contrast
On white
7.04
#334DC2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.98
#334DC2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #334DC2
7.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##334DC2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##334DC2 | 1.00 | 7.04 | 2.98 | 7.04 |
| #FFFFFF | 7.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#0052C0
Tritanopia (blue-blind)
#006B80
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #334dc2; /* rgb */ color: rgb(51, 77, 194); /* oklch */ color: oklch(47.5% 0.185 268.6);
Tailwind
colors: {
custom: {
50: '#7f7ed5',
500: '#334dc2',
950: '#000000',
},
}SCSS
$custom: #334dc2; $custom-light: #7f7ed5; $custom-dark: #000000;
JSON
{
"hex": "#334dc2",
"rgb": {
"r": 51,
"g": 77,
"b": 194
},
"hsl": {
"h": 229.091,
"s": 58.367,
"l": 48.039
},
"oklch": {
"l": 0.47469,
"c": 0.18489,
"h": 268.6
},
"luminance": 0.09907
}Semantic roles & 50–950 ramp
primary
#334DC2
secondary
#CCBF85
accent
#C546E2
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83