#335BD6#335BD6

#335BD6 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.8% C 0.194 H 266.0°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#335BD6
RGBrgb(51, 91, 214)
HSLhsl(225, 67%, 52%)
HSVhsv(225, 76%, 84%)
CMYKcmyk(76.2%, 57.5%, 0%, 16.1%)
CIE-LABlab(42.82, 29.49, -67.17)
CIE-LCHlch(42.82, 73.36, 293.70°)
OKLaboklab(51.8% -0.0136 -0.1939)
OKLCHoklch(51.8% 0.194 266)
XYZxyz(17.2397, 13.0391, 65.2135)
Luminance0.1304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335BD6 #D6AE33
analogous
#33ADD6 #335BD6 #5D33D6
triadic
#335BD6 #D6335B #5BD633
tetradic
#335BD6 #D633AD #D6AE33 #33D65D
square
#335BD6 #D633AD #D6AE33 #33D65D
split-complementary
#335BD6 #D65D33 #ADD633
monochromatic
#182F77 #2243AA #335BD6 #6684E0 #99ADEA

Accessibility & contrast

On white

5.82
#335BD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#335BD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335BD6
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335BD6#FFFFFF#000000##FFFFFF
##335BD61.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDA
Deuteranopia (green-blind)
#005ED4
Tritanopia (blue-blind)
#007A90
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #335bd6;
/* rgb */ color: rgb(51, 91, 214);
/* oklch */ color: oklch(51.8% 0.194 266.0);
Tailwind
colors: {
  custom: {
    50: '#8288e4',
    500: '#335bd6',
    950: '#000000',
  },
}
SCSS
$custom: #335bd6;
$custom-light: #8288e4;
$custom-dark: #000000;
JSON
{
  "hex": "#335bd6",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 214
  },
  "hsl": {
    "h": 225.276,
    "s": 66.531,
    "l": 51.961
  },
  "oklch": {
    "l": 0.51804,
    "c": 0.19441,
    "h": 266
  },
  "luminance": 0.13041
}

Semantic roles & 50–950 ramp

primary
#335BD6
secondary
#D6C58F
accent
#BF3EE9
background
#F8F8FE
surface
#F0EFFC
border
#CBCAD5
text
#0C0B16
muted
#7D7C84

Preview Lab

Preview with #335BD6

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

Preview Lab → · Contrast checker → · Palette generator →

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