#335FC6#335FC6

#335FC6 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.3% C 0.168 H 264.0°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#335FC6
RGBrgb(51, 95, 198)
HSLhsl(222, 59%, 49%)
HSVhsv(222, 74%, 78%)
CMYKcmyk(74.2%, 52%, 0%, 22.4%)
CIE-LABlab(42.71, 20.98, -58.15)
CIE-LCHlch(42.71, 61.82, 289.84°)
OKLaboklab(51.35% -0.0176 -0.1673)
OKLCHoklch(51.35% 0.168 264)
XYZxyz(15.6469, 12.9637, 55.0927)
Luminance0.1296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FC6 #C69A33
analogous
#33A9C6 #335FC6 #5133C6
triadic
#335FC6 #C6335F #5FC633
tetradic
#335FC6 #C633A9 #C69A33 #33C651
square
#335FC6 #C633A9 #C69A33 #33C651
split-complementary
#335FC6 #C65133 #A9C633
monochromatic
#1A3065 #264895 #335FC6 #6083D6 #91A9E3

Accessibility & contrast

On white

5.84
#335FC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#335FC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FC6
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FC6#FFFFFF#000000##FFFFFF
##335FC61.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#196CCA
Deuteranopia (green-blind)
#005EC4
Tritanopia (blue-blind)
#007889
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #335fc6;
/* rgb */ color: rgb(51, 95, 198);
/* oklch */ color: oklch(51.3% 0.168 264.0);
Tailwind
colors: {
  custom: {
    50: '#7f8bd8',
    500: '#335fc6',
    950: '#000000',
  },
}
SCSS
$custom: #335fc6;
$custom-light: #7f8bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#335fc6",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 198
  },
  "hsl": {
    "h": 222.041,
    "s": 59.036,
    "l": 48.824
  },
  "oklch": {
    "l": 0.51349,
    "c": 0.16827,
    "h": 264
  },
  "luminance": 0.12965
}

Semantic roles & 50–950 ramp

primary
#335FC6
secondary
#CDB887
accent
#B346E2
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #335FC6

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

Preview Lab → · Contrast checker → · Palette generator →

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