#335AC9#335AC9

#335AC9 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.6% C 0.178 H 265.6°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#335AC9
RGBrgb(51, 90, 201)
HSLhsl(224, 60%, 49%)
HSVhsv(224, 75%, 79%)
CMYKcmyk(74.6%, 55.2%, 0%, 21.2%)
CIE-LABlab(41.58, 25.33, -61.71)
CIE-LCHlch(41.58, 66.71, 292.31°)
OKLaboklab(50.56% -0.0136 -0.1779)
OKLCHoklch(50.56% 0.178 265.6)
XYZxyz(15.5603, 12.2315, 56.7879)
Luminance0.1223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AC9 #C9A233
analogous
#33A5C9 #335AC9 #5733C9
triadic
#335AC9 #C9335A #5AC933
tetradic
#335AC9 #C933A5 #C9A233 #33C957
square
#335AC9 #C933A5 #C9A233 #33C957
split-complementary
#335AC9 #C95733 #A5C933
monochromatic
#1A2E67 #274498 #335AC9 #6280D7 #93A8E4

Accessibility & contrast

On white

6.09
#335AC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#335AC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335AC9
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AC9#FFFFFF#000000##FFFFFF
##335AC91.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CD
Deuteranopia (green-blind)
#005BC7
Tritanopia (blue-blind)
#007589
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #335ac9;
/* rgb */ color: rgb(51, 90, 201);
/* oklch */ color: oklch(50.6% 0.178 265.6);
Tailwind
colors: {
  custom: {
    50: '#8088da',
    500: '#335ac9',
    950: '#000000',
  },
}
SCSS
$custom: #335ac9;
$custom-light: #8088da;
$custom-dark: #000000;
JSON
{
  "hex": "#335ac9",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 201
  },
  "hsl": {
    "h": 224.4,
    "s": 59.524,
    "l": 49.412
  },
  "oklch": {
    "l": 0.50564,
    "c": 0.17842,
    "h": 265.6
  },
  "luminance": 0.12233
}

Semantic roles & 50–950 ramp

primary
#335AC9
secondary
#CFBD89
accent
#BA45E3
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #335AC9

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

Preview Lab → · Contrast checker → · Palette generator →

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