#335FC8#335FC8

#335FC8 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.5% C 0.171 H 264.1°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#335FC8
RGBrgb(51, 95, 200)
HSLhsl(222, 59%, 49%)
HSVhsv(222, 75%, 78%)
CMYKcmyk(74.5%, 52.5%, 0%, 21.6%)
CIE-LABlab(42.85, 21.72, -59.08)
CIE-LCHlch(42.85, 62.95, 290.19°)
OKLaboklab(51.5% -0.0174 -0.1701)
OKLCHoklch(51.5% 0.171 264.1)
XYZxyz(15.8791, 13.0566, 56.3157)
Luminance0.1306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FC8 #C89C33
analogous
#33AAC8 #335FC8 #5233C8
triadic
#335FC8 #C8335F #5FC833
tetradic
#335FC8 #C833AA #C89C33 #33C852
square
#335FC8 #C833AA #C89C33 #33C852
split-complementary
#335FC8 #C85233 #AAC833
monochromatic
#1A3166 #274897 #335FC8 #6184D7 #92AAE3

Accessibility & contrast

On white

5.81
#335FC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#335FC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FC8
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FC8#FFFFFF#000000##FFFFFF
##335FC81.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#146CCC
Deuteranopia (green-blind)
#005FC6
Tritanopia (blue-blind)
#00788A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #335fc8;
/* rgb */ color: rgb(51, 95, 200);
/* oklch */ color: oklch(51.5% 0.171 264.1);
Tailwind
colors: {
  custom: {
    50: '#7f8bd9',
    500: '#335fc8',
    950: '#000000',
  },
}
SCSS
$custom: #335fc8;
$custom-light: #7f8bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#335fc8",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 200
  },
  "hsl": {
    "h": 222.282,
    "s": 59.363,
    "l": 49.216
  },
  "oklch": {
    "l": 0.51499,
    "c": 0.17097,
    "h": 264.1
  },
  "luminance": 0.13058
}

Semantic roles & 50–950 ramp

primary
#335FC8
secondary
#CEBA89
accent
#B445E3
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #335FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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