#335ED6#335ED6

#335ED6 is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.4% C 0.191 H 265.3°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#335ED6
RGBrgb(51, 94, 214)
HSLhsl(224, 67%, 52%)
HSVhsv(224, 76%, 84%)
CMYKcmyk(76.2%, 56.1%, 0%, 16.1%)
CIE-LABlab(43.60, 27.56, -65.91)
CIE-LCHlch(43.60, 71.44, 292.70°)
OKLaboklab(52.39% -0.0156 -0.1902)
OKLCHoklch(52.39% 0.191 265.3)
XYZxyz(17.5013, 13.5623, 65.3007)
Luminance0.1356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335ED6 #D6AB33
analogous
#33B0D6 #335ED6 #5A33D6
triadic
#335ED6 #D6335E #5ED633
tetradic
#335ED6 #D633B0 #D6AB33 #33D65A
square
#335ED6 #D633B0 #D6AB33 #33D65A
split-complementary
#335ED6 #D65A33 #B0D633
monochromatic
#183177 #2246AA #335ED6 #6686E0 #99AEEA

Accessibility & contrast

On white

5.66
#335ED6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#335ED6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335ED6
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335ED6#FFFFFF#000000##FFFFFF
##335ED61.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #335ed6;
/* rgb */ color: rgb(51, 94, 214);
/* oklch */ color: oklch(52.4% 0.191 265.3);
Tailwind
colors: {
  custom: {
    50: '#828be3',
    500: '#335ed6',
    950: '#000000',
  },
}
SCSS
$custom: #335ed6;
$custom-light: #828be3;
$custom-dark: #000000;
JSON
{
  "hex": "#335ed6",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 214
  },
  "hsl": {
    "h": 224.172,
    "s": 66.531,
    "l": 51.961
  },
  "oklch": {
    "l": 0.52386,
    "c": 0.19081,
    "h": 265.3
  },
  "luminance": 0.13564
}

Semantic roles & 50–950 ramp

primary
#335ED6
secondary
#D6C38F
accent
#BC3EE9
background
#F8F8FE
surface
#F0F0FC
border
#CBCBD5
text
#0C0B16
muted
#7D7C84

Preview Lab

Preview with #335ED6

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

Preview Lab → · Contrast checker → · Palette generator →

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