#335AC8#335AC8

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

Color values

HEX#335AC8
RGBrgb(51, 90, 200)
HSLhsl(224, 59%, 49%)
HSVhsv(224, 75%, 78%)
CMYKcmyk(74.5%, 55%, 0%, 21.6%)
CIE-LABlab(41.51, 24.96, -61.25)
CIE-LCHlch(41.51, 66.14, 292.17°)
OKLaboklab(50.49% -0.0136 -0.1766)
OKLCHoklch(50.49% 0.177 265.6)
XYZxyz(15.4431, 12.1846, 56.1704)
Luminance0.1219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AC8 #C8A133
analogous
#33A5C8 #335AC8 #5633C8
triadic
#335AC8 #C8335A #5AC833
tetradic
#335AC8 #C833A5 #C8A133 #33C856
square
#335AC8 #C833A5 #C8A133 #33C856
split-complementary
#335AC8 #C85633 #A5C833
monochromatic
#1A2E66 #274497 #335AC8 #6180D7 #92A7E3

Accessibility & contrast

On white

6.11
#335AC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#335AC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335AC8
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AC8#FFFFFF#000000##FFFFFF
##335AC81.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CC
Deuteranopia (green-blind)
#005BC6
Tritanopia (blue-blind)
#007588
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #335ac8;
/* rgb */ color: rgb(51, 90, 200);
/* oklch */ color: oklch(50.5% 0.177 265.6);
Tailwind
colors: {
  custom: {
    50: '#7f88d9',
    500: '#335ac8',
    950: '#000000',
  },
}
SCSS
$custom: #335ac8;
$custom-light: #7f88d9;
$custom-dark: #000000;
JSON
{
  "hex": "#335ac8",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 200
  },
  "hsl": {
    "h": 224.295,
    "s": 59.363,
    "l": 49.216
  },
  "oklch": {
    "l": 0.50485,
    "c": 0.17707,
    "h": 265.6
  },
  "luminance": 0.12186
}

Semantic roles & 50–950 ramp

primary
#335AC8
secondary
#CEBC89
accent
#B945E3
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #335AC8

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

Preview Lab → · Contrast checker → · Palette generator →

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