#335AD6#335AD6

#335AD6 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.6% C 0.196 H 266.2°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#335AD6
RGBrgb(51, 90, 214)
HSLhsl(226, 67%, 52%)
HSVhsv(226, 76%, 84%)
CMYKcmyk(76.2%, 57.9%, 0%, 16.1%)
CIE-LABlab(42.57, 30.13, -67.59)
CIE-LCHlch(42.57, 74.00, 294.03°)
OKLaboklab(51.61% -0.0129 -0.1952)
OKLCHoklch(51.61% 0.196 266.2)
XYZxyz(17.1547, 12.8692, 65.1852)
Luminance0.1287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AD6 #D6AF33
analogous
#33ACD6 #335AD6 #5E33D6
triadic
#335AD6 #D6335A #5AD633
tetradic
#335AD6 #D633AC #D6AF33 #33D65E
square
#335AD6 #D633AC #D6AF33 #33D65E
split-complementary
#335AD6 #D65E33 #ACD633
monochromatic
#182F77 #2243AA #335AD6 #6683E0 #99ACEA

Accessibility & contrast

On white

5.88
#335AD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#335AD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335AD6
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AD6#FFFFFF#000000##FFFFFF
##335AD61.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDA
Deuteranopia (green-blind)
#005DD4
Tritanopia (blue-blind)
#00798F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #335ad6;
/* rgb */ color: rgb(51, 90, 214);
/* oklch */ color: oklch(51.6% 0.196 266.2);
Tailwind
colors: {
  custom: {
    50: '#8388e4',
    500: '#335ad6',
    950: '#000000',
  },
}
SCSS
$custom: #335ad6;
$custom-light: #8388e4;
$custom-dark: #000000;
JSON
{
  "hex": "#335ad6",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 214
  },
  "hsl": {
    "h": 225.644,
    "s": 66.531,
    "l": 51.961
  },
  "oklch": {
    "l": 0.51612,
    "c": 0.1956,
    "h": 266.2
  },
  "luminance": 0.12871
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335AD6

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

Preview Lab → · Contrast checker → · Palette generator →

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