#335DB6#335DB6

#335DB6 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.8% C 0.149 H 263.1°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#335DB6
RGBrgb(51, 93, 182)
HSLhsl(221, 56%, 46%)
HSVhsv(221, 72%, 71%)
CMYKcmyk(72%, 48.9%, 0%, 28.6%)
CIE-LABlab(41.07, 16.29, -51.48)
CIE-LCHlch(41.07, 54.00, 287.56°)
OKLaboklab(49.75% -0.0179 -0.1478)
OKLCHoklch(49.75% 0.149 263.1)
XYZxyz(13.7201, 11.9085, 45.8224)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335DB6 #B68C33
analogous
#339EB6 #335DB6 #4A33B6
triadic
#335DB6 #B6335D #5DB633
tetradic
#335DB6 #B6339E #B68C33 #33B64A
square
#335DB6 #B6339E #B68C33 #33B64A
split-complementary
#335DB6 #B64A33 #9EB633
monochromatic
#182C56 #264586 #335DB6 #567DD0 #86A2DD

Accessibility & contrast

On white

6.21
#335DB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#335DB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335DB6
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335DB6#FFFFFF#000000##FFFFFF
##335DB61.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B67B9
Deuteranopia (green-blind)
#005BB4
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #335db6;
/* rgb */ color: rgb(51, 93, 182);
/* oklch */ color: oklch(49.8% 0.149 263.1);
Tailwind
colors: {
  custom: {
    50: '#7b8acc',
    500: '#335db6',
    950: '#000000',
  },
}
SCSS
$custom: #335db6;
$custom-light: #7b8acc;
$custom-dark: #000000;
JSON
{
  "hex": "#335db6",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 182
  },
  "hsl": {
    "h": 220.763,
    "s": 56.223,
    "l": 45.686
  },
  "oklch": {
    "l": 0.49754,
    "c": 0.14884,
    "h": 263.1
  },
  "luminance": 0.1191
}

Semantic roles & 50–950 ramp

primary
#335DB6
secondary
#C7AF7E
accent
#AF48E0
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #335DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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