#335DB8#335DB8

#335DB8 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.9% C 0.152 H 263.3°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#335DB8
RGBrgb(51, 93, 184)
HSLhsl(221, 57%, 46%)
HSVhsv(221, 72%, 72%)
CMYKcmyk(72.3%, 49.5%, 0%, 27.8%)
CIE-LABlab(41.20, 17.04, -52.44)
CIE-LCHlch(41.20, 55.14, 288.00°)
OKLaboklab(49.9% -0.0176 -0.1506)
OKLCHoklch(49.9% 0.152 263.3)
XYZxyz(13.9283, 11.9917, 46.9187)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335DB8 #B88E33
analogous
#339FB8 #335DB8 #4B33B8
triadic
#335DB8 #B8335D #5DB833
tetradic
#335DB8 #B8339F #B88E33 #33B84B
square
#335DB8 #B8339F #B88E33 #33B84B
split-complementary
#335DB8 #B84B33 #9FB833
monochromatic
#182D58 #264588 #335DB8 #587ED1 #88A3DE

Accessibility & contrast

On white

6.18
#335DB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#335DB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335DB8
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335DB8#FFFFFF#000000##FFFFFF
##335DB81.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2968BB
Deuteranopia (green-blind)
#005BB6
Tritanopia (blue-blind)
#007382
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #335db8;
/* rgb */ color: rgb(51, 93, 184);
/* oklch */ color: oklch(49.9% 0.152 263.3);
Tailwind
colors: {
  custom: {
    50: '#7c8ace',
    500: '#335db8',
    950: '#000000',
  },
}
SCSS
$custom: #335db8;
$custom-light: #7c8ace;
$custom-dark: #000000;
JSON
{
  "hex": "#335db8",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 184
  },
  "hsl": {
    "h": 221.053,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49897,
    "c": 0.1516,
    "h": 263.3
  },
  "luminance": 0.11993
}

Semantic roles & 50–950 ramp

primary
#335DB8
secondary
#C8B17F
accent
#B048E0
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #335DB8

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#335DB8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva