#335CC2#335CC2

#335CC2 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.4% C 0.167 H 264.6°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#335CC2
RGBrgb(51, 92, 194)
HSLhsl(223, 58%, 48%)
HSVhsv(223, 74%, 76%)
CMYKcmyk(73.7%, 52.6%, 0%, 23.9%)
CIE-LABlab(41.61, 21.43, -57.60)
CIE-LCHlch(41.61, 61.46, 290.40°)
OKLaboklab(50.43% -0.0157 -0.1658)
OKLCHoklch(50.43% 0.167 264.6)
XYZxyz(14.9266, 12.2515, 52.6066)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335CC2 #C29933
analogous
#33A3C2 #335CC2 #5133C2
triadic
#335CC2 #C2335C #5CC233
tetradic
#335CC2 #C233A3 #C29933 #33C251
square
#335CC2 #C233A3 #C29933 #33C251
split-complementary
#335CC2 #C25133 #A3C233
monochromatic
#1A2E61 #264592 #335CC2 #5E80D5 #8EA6E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##335CC2#FFFFFF#000000##FFFFFF
##335CC21.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)
#1469C6
Deuteranopia (green-blind)
#005CC0
Tritanopia (blue-blind)
#007586
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #335cc2;
/* rgb */ color: rgb(51, 92, 194);
/* oklch */ color: oklch(50.4% 0.167 264.6);
Tailwind
colors: {
  custom: {
    50: '#7e89d5',
    500: '#335cc2',
    950: '#000000',
  },
}
SCSS
$custom: #335cc2;
$custom-light: #7e89d5;
$custom-dark: #000000;
JSON
{
  "hex": "#335cc2",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 194
  },
  "hsl": {
    "h": 222.797,
    "s": 58.367,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50428,
    "c": 0.16653,
    "h": 264.6
  },
  "luminance": 0.12253
}

Semantic roles & 50–950 ramp

primary
#335CC2
secondary
#CCB785
accent
#B546E2
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #335CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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