#335CB8#335CB8

#335CB8 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.7% C 0.153 H 263.7°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#335CB8
RGBrgb(51, 92, 184)
HSLhsl(222, 57%, 46%)
HSVhsv(222, 72%, 72%)
CMYKcmyk(72.3%, 50%, 0%, 27.8%)
CIE-LABlab(40.92, 17.69, -52.89)
CIE-LCHlch(40.92, 55.77, 288.50°)
OKLaboklab(49.69% -0.0168 -0.1519)
OKLCHoklch(49.69% 0.153 263.7)
XYZxyz(13.8411, 11.8173, 46.8896)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335CB8 #B88F33
analogous
#339EB8 #335CB8 #4C33B8
triadic
#335CB8 #B8335C #5CB833
tetradic
#335CB8 #B8339E #B88F33 #33B84C
square
#335CB8 #B8339E #B88F33 #33B84C
split-complementary
#335CB8 #B84C33 #9EB833
monochromatic
#182C58 #264488 #335CB8 #587DD1 #88A2DE

Accessibility & contrast

On white

6.24
#335CB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#335CB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335CB8
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335CB8#FFFFFF#000000##FFFFFF
##335CB81.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2667BB
Deuteranopia (green-blind)
#005BB6
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #335cb8;
/* rgb */ color: rgb(51, 92, 184);
/* oklch */ color: oklch(49.7% 0.153 263.7);
Tailwind
colors: {
  custom: {
    50: '#7c89ce',
    500: '#335cb8',
    950: '#000000',
  },
}
SCSS
$custom: #335cb8;
$custom-light: #7c89ce;
$custom-dark: #000000;
JSON
{
  "hex": "#335cb8",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 184
  },
  "hsl": {
    "h": 221.504,
    "s": 56.596,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49685,
    "c": 0.15283,
    "h": 263.7
  },
  "luminance": 0.11819
}

Semantic roles & 50–950 ramp

primary
#335CB8
secondary
#C8B17F
accent
#B148E0
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #335CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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