#335AC1#335AC1
#335AC1 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.9% C 0.168 H 265.2°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).
Color values
| HEX | #335AC1 |
|---|---|
| RGB | rgb(51, 90, 193) |
| HSL | hsl(224, 58%, 48%) |
| HSV | hsv(224, 74%, 76%) |
| CMYK | cmyk(73.6%, 53.4%, 0%, 24.3%) |
| CIE-LAB | lab(41.00, 22.35, -58.01) |
| CIE-LCH | lch(41.00, 62.17, 291.07°) |
| OKLab | oklab(49.94% -0.0142 -0.167) |
| OKLCH | oklch(49.94% 0.168 265.2) |
| XYZ | xyz(14.6437, 11.8648, 51.9601) |
| Luminance | 0.1187 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.49
Denim
#1560BD
ΔE00 4.32
Azul
#1D5DEC
ΔE00 5.23
Warm Blue
#4B57DB
ΔE00 5.59
Denim Blue
#3B5B92
ΔE00 6.01
French Blue
#436BAD
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#335AC1 #C19A33
analogous
#33A1C1 #335AC1 #5333C1
triadic
#335AC1 #C1335A #5AC133
tetradic
#335AC1 #C133A1 #C19A33 #33C153
square
#335AC1 #C133A1 #C19A33 #33C153
split-complementary
#335AC1 #C15333 #A1C133
monochromatic
#192D60 #264391 #335AC1 #5D7ED4 #8DA4E1
Accessibility & contrast
On white
6.23
#335AC1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.37
#335AC1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #335AC1
6.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##335AC1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##335AC1 | 1.00 | 6.23 | 3.37 | 6.23 |
| #FFFFFF | 6.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0B68C5
Deuteranopia (green-blind)
#005ABF
Tritanopia (blue-blind)
#007385
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #335ac1; /* rgb */ color: rgb(51, 90, 193); /* oklch */ color: oklch(49.9% 0.168 265.2);
Tailwind
colors: {
custom: {
50: '#7e88d4',
500: '#335ac1',
950: '#000000',
},
}SCSS
$custom: #335ac1; $custom-light: #7e88d4; $custom-dark: #000000;
JSON
{
"hex": "#335ac1",
"rgb": {
"r": 51,
"g": 90,
"b": 193
},
"hsl": {
"h": 223.521,
"s": 58.197,
"l": 47.843
},
"oklch": {
"l": 0.49941,
"c": 0.16763,
"h": 265.2
},
"luminance": 0.11866
}Semantic roles & 50–950 ramp
primary
#335AC1
secondary
#CBB884
accent
#B746E1
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83