#335DD6#335DD6

#335DD6 is a mid, vivid blue. Relative luminance 0.134; OKLCH L 52.2% C 0.192 H 265.5°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#335DD6
RGBrgb(51, 93, 214)
HSLhsl(225, 67%, 52%)
HSVhsv(225, 76%, 84%)
CMYKcmyk(76.2%, 56.5%, 0%, 16.1%)
CIE-LABlab(43.34, 28.21, -66.33)
CIE-LCHlch(43.34, 72.08, 293.04°)
OKLaboklab(52.19% -0.015 -0.1914)
OKLCHoklch(52.19% 0.192 265.5)
XYZxyz(17.4129, 13.3856, 65.2712)
Luminance0.1339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335DD6 #D6AC33
analogous
#33AFD6 #335DD6 #5B33D6
triadic
#335DD6 #D6335D #5DD633
tetradic
#335DD6 #D633AF #D6AC33 #33D65B
square
#335DD6 #D633AF #D6AC33 #33D65B
split-complementary
#335DD6 #D65B33 #AFD633
monochromatic
#183077 #2245AA #335DD6 #6685E0 #99AEEA

Accessibility & contrast

On white

5.71
#335DD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#335DD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335DD6
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335DD6#FFFFFF#000000##FFFFFF
##335DD61.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDA
Deuteranopia (green-blind)
#005FD4
Tritanopia (blue-blind)
#007B90
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #335dd6;
/* rgb */ color: rgb(51, 93, 214);
/* oklch */ color: oklch(52.2% 0.192 265.5);
Tailwind
colors: {
  custom: {
    50: '#828ae3',
    500: '#335dd6',
    950: '#000000',
  },
}
SCSS
$custom: #335dd6;
$custom-light: #828ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#335dd6",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 214
  },
  "hsl": {
    "h": 224.54,
    "s": 66.531,
    "l": 51.961
  },
  "oklch": {
    "l": 0.52191,
    "c": 0.19201,
    "h": 265.5
  },
  "luminance": 0.13388
}

Semantic roles & 50–950 ramp

primary
#335DD6
secondary
#D6C48F
accent
#BD3EE9
background
#F8F8FE
surface
#F0F0FC
border
#CBCBD5
text
#0C0B16
muted
#7D7C84

Preview Lab

Preview with #335DD6

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

Preview Lab → · Contrast checker → · Palette generator →

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