#335AB2#335AB2
#335AB2 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.8% C 0.147 H 263.8°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).
Color values
| HEX | #335AB2 |
|---|---|
| RGB | rgb(51, 90, 178) |
| HSL | hsl(222, 55%, 45%) |
| HSV | hsv(222, 71%, 70%) |
| CMYK | cmyk(71.3%, 49.4%, 0%, 30.2%) |
| CIE-LAB | lab(39.96, 16.75, -50.91) |
| CIE-LCH | lch(39.96, 53.60, 288.21°) |
| OKLab | oklab(48.82% -0.0158 -0.1461) |
| OKLCH | oklch(48.82% 0.147 263.8) |
| XYZ | xyz(13.0544, 11.2291, 43.5903) |
| Luminance | 0.1123 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 3.16
Denim
#1560BD
ΔE00 3.81
Denim Blue
#3B5B92
ΔE00 4.14
Dusky Blue
#475F94
ΔE00 4.99
Dusk Blue
#26538D
ΔE00 5.58
Light Navy Blue
#2E5A88
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#335AB2 #B28B33
analogous
#339AB2 #335AB2 #4C33B2
triadic
#335AB2 #B2335A #5AB233
tetradic
#335AB2 #B2339A #B28B33 #33B24C
square
#335AB2 #B2339A #B28B33 #33B24C
split-complementary
#335AB2 #B24C33 #9AB233
monochromatic
#182A53 #254282 #335AB2 #547ACE #849FDC
Accessibility & contrast
On white
6.47
#335AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.25
#335AB2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #335AB2
6.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##335AB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##335AB2 | 1.00 | 6.47 | 3.25 | 6.47 |
| #FFFFFF | 6.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2864B5
Deuteranopia (green-blind)
#0059B0
Tritanopia (blue-blind)
#006F7D
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #335ab2; /* rgb */ color: rgb(51, 90, 178); /* oklch */ color: oklch(48.8% 0.147 263.8);
Tailwind
colors: {
custom: {
50: '#7b88ca',
500: '#335ab2',
950: '#000000',
},
}SCSS
$custom: #335ab2; $custom-light: #7b88ca; $custom-dark: #000000;
JSON
{
"hex": "#335ab2",
"rgb": {
"r": 51,
"g": 90,
"b": 178
},
"hsl": {
"h": 221.575,
"s": 55.459,
"l": 44.902
},
"oklch": {
"l": 0.48823,
"c": 0.14699,
"h": 263.8
},
"luminance": 0.1123
}Semantic roles & 50–950 ramp
primary
#335AB2
secondary
#C5AF7C
accent
#B149DF
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82