#335CC8#335CC8

#335CC8 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.9% C 0.175 H 265.0°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#335CC8
RGBrgb(51, 92, 200)
HSLhsl(223, 59%, 49%)
HSVhsv(223, 75%, 78%)
CMYKcmyk(74.5%, 54%, 0%, 21.6%)
CIE-LABlab(42.04, 23.66, -60.39)
CIE-LCHlch(42.04, 64.86, 291.40°)
OKLaboklab(50.89% -0.0151 -0.174)
OKLCHoklch(50.89% 0.175 265)
XYZxyz(15.6140, 12.5265, 56.2273)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335CC8 #C89F33
analogous
#33A7C8 #335CC8 #5533C8
triadic
#335CC8 #C8335C #5CC833
tetradic
#335CC8 #C833A7 #C89F33 #33C855
square
#335CC8 #C833A7 #C89F33 #33C855
split-complementary
#335CC8 #C85533 #A7C833
monochromatic
#1A2F66 #274697 #335CC8 #6182D7 #92A8E3

Accessibility & contrast

On white

5.99
#335CC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#335CC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335CC8
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335CC8#FFFFFF#000000##FFFFFF
##335CC81.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACC
Deuteranopia (green-blind)
#005DC6
Tritanopia (blue-blind)
#007689
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #335cc8;
/* rgb */ color: rgb(51, 92, 200);
/* oklch */ color: oklch(50.9% 0.175 265.0);
Tailwind
colors: {
  custom: {
    50: '#7f89d9',
    500: '#335cc8',
    950: '#000000',
  },
}
SCSS
$custom: #335cc8;
$custom-light: #7f89d9;
$custom-dark: #000000;
JSON
{
  "hex": "#335cc8",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 200
  },
  "hsl": {
    "h": 223.49,
    "s": 59.363,
    "l": 49.216
  },
  "oklch": {
    "l": 0.50888,
    "c": 0.17464,
    "h": 265
  },
  "luminance": 0.12528
}

Semantic roles & 50–950 ramp

primary
#335CC8
secondary
#CEBB89
accent
#B745E3
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #335CC8

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

Preview Lab → · Contrast checker → · Palette generator →

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