#335CD6#335CD6

#335CD6 is a mid, vivid blue. Relative luminance 0.132; OKLCH L 52.0% C 0.193 H 265.8°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#335CD6
RGBrgb(51, 92, 214)
HSLhsl(225, 67%, 52%)
HSVhsv(225, 76%, 84%)
CMYKcmyk(76.2%, 57%, 0%, 16.1%)
CIE-LABlab(43.08, 28.85, -66.75)
CIE-LCHlch(43.08, 72.72, 293.37°)
OKLaboklab(52% -0.0143 -0.1927)
OKLCHoklch(52% 0.193 265.8)
XYZxyz(17.3257, 13.2112, 65.2422)
Luminance0.1321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335CD6 #D6AD33
analogous
#33AED6 #335CD6 #5C33D6
triadic
#335CD6 #D6335C #5CD633
tetradic
#335CD6 #D633AE #D6AD33 #33D65C
square
#335CD6 #D633AE #D6AD33 #33D65C
split-complementary
#335CD6 #D65C33 #AED633
monochromatic
#183077 #2244AA #335CD6 #6685E0 #99ADEA

Accessibility & contrast

On white

5.77
#335CD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#335CD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335CD6
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335CD6#FFFFFF#000000##FFFFFF
##335CD61.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #335cd6;
/* rgb */ color: rgb(51, 92, 214);
/* oklch */ color: oklch(52.0% 0.193 265.8);
Tailwind
colors: {
  custom: {
    50: '#8289e4',
    500: '#335cd6',
    950: '#000000',
  },
}
SCSS
$custom: #335cd6;
$custom-light: #8289e4;
$custom-dark: #000000;
JSON
{
  "hex": "#335cd6",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 214
  },
  "hsl": {
    "h": 224.908,
    "s": 66.531,
    "l": 51.961
  },
  "oklch": {
    "l": 0.51997,
    "c": 0.19321,
    "h": 265.8
  },
  "luminance": 0.13213
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335CD6

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

Preview Lab → · Contrast checker → · Palette generator →

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