#335DB4#335DB4

#335DB4 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.6% C 0.146 H 262.8°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#335DB4
RGBrgb(51, 93, 180)
HSLhsl(220, 56%, 45%)
HSVhsv(220, 72%, 71%)
CMYKcmyk(71.7%, 48.3%, 0%, 29.4%)
CIE-LABlab(40.94, 15.55, -50.52)
CIE-LCHlch(40.94, 52.86, 287.10°)
OKLaboklab(49.61% -0.0182 -0.1449)
OKLCHoklch(49.61% 0.146 262.8)
XYZxyz(13.5149, 11.8264, 44.7416)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335DB4 #B48A33
analogous
#339DB4 #335DB4 #4933B4
triadic
#335DB4 #B4335D #5DB433
tetradic
#335DB4 #B4339D #B48A33 #33B449
square
#335DB4 #B4339D #B48A33 #33B449
split-complementary
#335DB4 #B44933 #9DB433
monochromatic
#182C55 #254484 #335DB4 #557DCF #85A1DC

Accessibility & contrast

On white

6.24
#335DB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#335DB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335DB4
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335DB4#FFFFFF#000000##FFFFFF
##335DB41.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D67B7
Deuteranopia (green-blind)
#085BB2
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #335db4;
/* rgb */ color: rgb(51, 93, 180);
/* oklch */ color: oklch(49.6% 0.146 262.8);
Tailwind
colors: {
  custom: {
    50: '#7b8acb',
    500: '#335db4',
    950: '#000000',
  },
}
SCSS
$custom: #335db4;
$custom-light: #7b8acb;
$custom-dark: #000000;
JSON
{
  "hex": "#335db4",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 180
  },
  "hsl": {
    "h": 220.465,
    "s": 55.844,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49611,
    "c": 0.14607,
    "h": 262.8
  },
  "luminance": 0.11828
}

Semantic roles & 50–950 ramp

primary
#335DB4
secondary
#C6AE7D
accent
#AE49DF
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #335DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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