#335FD6#335FD6

#335FD6 is a mid, vivid blue. Relative luminance 0.137; OKLCH L 52.6% C 0.190 H 265.1°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#335FD6
RGBrgb(51, 95, 214)
HSLhsl(224, 67%, 52%)
HSVhsv(224, 76%, 84%)
CMYKcmyk(76.2%, 55.6%, 0%, 16.1%)
CIE-LABlab(43.86, 26.92, -65.48)
CIE-LCHlch(43.86, 70.80, 292.35°)
OKLaboklab(52.58% -0.0163 -0.1889)
OKLCHoklch(52.58% 0.19 265.1)
XYZxyz(17.5908, 13.7413, 65.3305)
Luminance0.1374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FD6 #D6AA33
analogous
#33B0D6 #335FD6 #5933D6
triadic
#335FD6 #D6335F #5FD633
tetradic
#335FD6 #D633B0 #D6AA33 #33D659
square
#335FD6 #D633B0 #D6AA33 #33D659
split-complementary
#335FD6 #D65933 #B0D633
monochromatic
#183177 #2247AA #335FD6 #6687E0 #99AFEA

Accessibility & contrast

On white

5.60
#335FD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#335FD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FD6
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FD6#FFFFFF#000000##FFFFFF
##335FD61.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDA
Deuteranopia (green-blind)
#0060D4
Tritanopia (blue-blind)
#007C91
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #335fd6;
/* rgb */ color: rgb(51, 95, 214);
/* oklch */ color: oklch(52.6% 0.190 265.1);
Tailwind
colors: {
  custom: {
    50: '#828be3',
    500: '#335fd6',
    950: '#000000',
  },
}
SCSS
$custom: #335fd6;
$custom-light: #828be3;
$custom-dark: #000000;
JSON
{
  "hex": "#335fd6",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 214
  },
  "hsl": {
    "h": 223.804,
    "s": 66.531,
    "l": 51.961
  },
  "oklch": {
    "l": 0.52583,
    "c": 0.18962,
    "h": 265.1
  },
  "luminance": 0.13743
}

Semantic roles & 50–950 ramp

primary
#335FD6
secondary
#D6C38F
accent
#BB3EE9
background
#F8F8FE
surface
#F0F0FC
border
#CBCBD5
text
#0C0C16
muted
#7D7D84

Preview Lab

Preview with #335FD6

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

Preview Lab → · Contrast checker → · Palette generator →

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