#335DC2#335DC2

#335DC2 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.6% C 0.165 H 264.3°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#335DC2
RGBrgb(51, 93, 194)
HSLhsl(222, 58%, 48%)
HSVhsv(222, 74%, 76%)
CMYKcmyk(73.7%, 52.1%, 0%, 23.9%)
CIE-LABlab(41.89, 20.78, -57.16)
CIE-LCHlch(41.89, 60.82, 289.98°)
OKLaboklab(50.64% -0.0165 -0.1645)
OKLCHoklch(50.64% 0.165 264.3)
XYZxyz(15.0137, 12.4259, 52.6357)
Luminance0.1243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335DC2 #C29833
analogous
#33A4C2 #335DC2 #5133C2
triadic
#335DC2 #C2335D #5DC233
tetradic
#335DC2 #C233A4 #C29833 #33C251
square
#335DC2 #C233A4 #C29833 #33C251
split-complementary
#335DC2 #C25133 #A4C233
monochromatic
#1A2F61 #264692 #335DC2 #5E81D5 #8EA7E1

Accessibility & contrast

On white

6.02
#335DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#335DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335DC2
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335DC2#FFFFFF#000000##FFFFFF
##335DC21.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#196AC6
Deuteranopia (green-blind)
#005DC0
Tritanopia (blue-blind)
#007586
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #335dc2;
/* rgb */ color: rgb(51, 93, 194);
/* oklch */ color: oklch(50.6% 0.165 264.3);
Tailwind
colors: {
  custom: {
    50: '#7e8ad5',
    500: '#335dc2',
    950: '#000000',
  },
}
SCSS
$custom: #335dc2;
$custom-light: #7e8ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#335dc2",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 194
  },
  "hsl": {
    "h": 222.378,
    "s": 58.367,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50635,
    "c": 0.1653,
    "h": 264.3
  },
  "luminance": 0.12428
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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