#335FC9#335FC9

#335FC9 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.6% C 0.172 H 264.2°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#335FC9
RGBrgb(51, 95, 201)
HSLhsl(222, 60%, 49%)
HSVhsv(222, 75%, 79%)
CMYKcmyk(74.6%, 52.7%, 0%, 21.2%)
CIE-LABlab(42.92, 22.10, -59.54)
CIE-LCHlch(42.92, 63.51, 290.36°)
OKLaboklab(51.58% -0.0173 -0.1714)
OKLCHoklch(51.58% 0.172 264.2)
XYZxyz(15.9963, 13.1035, 56.9332)
Luminance0.1310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FC9 #C99D33
analogous
#33AAC9 #335FC9 #5233C9
triadic
#335FC9 #C9335F #5FC933
tetradic
#335FC9 #C933AA #C99D33 #33C952
square
#335FC9 #C933AA #C99D33 #33C952
split-complementary
#335FC9 #C95233 #AAC933
monochromatic
#1A3167 #274898 #335FC9 #6284D7 #93ABE4

Accessibility & contrast

On white

5.80
#335FC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#335FC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FC9
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FC9#FFFFFF#000000##FFFFFF
##335FC91.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#126DCD
Deuteranopia (green-blind)
#005FC7
Tritanopia (blue-blind)
#00798B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #335fc9;
/* rgb */ color: rgb(51, 95, 201);
/* oklch */ color: oklch(51.6% 0.172 264.2);
Tailwind
colors: {
  custom: {
    50: '#7f8bda',
    500: '#335fc9',
    950: '#000000',
  },
}
SCSS
$custom: #335fc9;
$custom-light: #7f8bda;
$custom-dark: #000000;
JSON
{
  "hex": "#335fc9",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 201
  },
  "hsl": {
    "h": 222.4,
    "s": 59.524,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51575,
    "c": 0.17232,
    "h": 264.2
  },
  "luminance": 0.13105
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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