#335DB9#335DB9

#335DB9 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.0% C 0.153 H 263.4°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#335DB9
RGBrgb(51, 93, 185)
HSLhsl(221, 57%, 46%)
HSVhsv(221, 72%, 73%)
CMYKcmyk(72.4%, 49.7%, 0%, 27.5%)
CIE-LABlab(41.27, 17.42, -52.91)
CIE-LCHlch(41.27, 55.71, 288.22°)
OKLaboklab(49.97% -0.0175 -0.152)
OKLCHoklch(49.97% 0.153 263.4)
XYZxyz(14.0334, 12.0338, 47.4727)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335DB9 #B98F33
analogous
#33A0B9 #335DB9 #4C33B9
triadic
#335DB9 #B9335D #5DB933
tetradic
#335DB9 #B933A0 #B98F33 #33B94C
square
#335DB9 #B933A0 #B98F33 #33B94C
split-complementary
#335DB9 #B94C33 #A0B933
monochromatic
#192D59 #264589 #335DB9 #587ED1 #88A3DE

Accessibility & contrast

On white

6.16
#335DB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#335DB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335DB9
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335DB9#FFFFFF#000000##FFFFFF
##335DB91.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2868BC
Deuteranopia (green-blind)
#005CB7
Tritanopia (blue-blind)
#007382
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #335db9;
/* rgb */ color: rgb(51, 93, 185);
/* oklch */ color: oklch(50.0% 0.153 263.4);
Tailwind
colors: {
  custom: {
    50: '#7c8acf',
    500: '#335db9',
    950: '#000000',
  },
}
SCSS
$custom: #335db9;
$custom-light: #7c8acf;
$custom-dark: #000000;
JSON
{
  "hex": "#335db9",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 185
  },
  "hsl": {
    "h": 221.194,
    "s": 56.78,
    "l": 46.275
  },
  "oklch": {
    "l": 0.4997,
    "c": 0.15298,
    "h": 263.4
  },
  "luminance": 0.12035
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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