#335FC2#335FC2

#335FC2 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.1% C 0.163 H 263.6°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#335FC2
RGBrgb(51, 95, 194)
HSLhsl(222, 58%, 48%)
HSVhsv(222, 74%, 76%)
CMYKcmyk(73.7%, 51%, 0%, 23.9%)
CIE-LABlab(42.43, 19.48, -56.28)
CIE-LCHlch(42.43, 59.56, 289.10°)
OKLaboklab(51.05% -0.0181 -0.1618)
OKLCHoklch(51.05% 0.163 263.6)
XYZxyz(15.1916, 12.7816, 52.6949)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FC2 #C29633
analogous
#33A7C2 #335FC2 #4E33C2
triadic
#335FC2 #C2335F #5FC233
tetradic
#335FC2 #C233A7 #C29633 #33C24E
square
#335FC2 #C233A7 #C29633 #33C24E
split-complementary
#335FC2 #C24E33 #A7C233
monochromatic
#1A3061 #264792 #335FC2 #5E82D5 #8EA8E1

Accessibility & contrast

On white

5.90
#335FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#335FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FC2
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FC2#FFFFFF#000000##FFFFFF
##335FC21.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#216BC6
Deuteranopia (green-blind)
#005EC0
Tritanopia (blue-blind)
#007787
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #335fc2;
/* rgb */ color: rgb(51, 95, 194);
/* oklch */ color: oklch(51.1% 0.163 263.6);
Tailwind
colors: {
  custom: {
    50: '#7e8bd5',
    500: '#335fc2',
    950: '#000000',
  },
}
SCSS
$custom: #335fc2;
$custom-light: #7e8bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#335fc2",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 194
  },
  "hsl": {
    "h": 221.538,
    "s": 58.367,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51051,
    "c": 0.16285,
    "h": 263.6
  },
  "luminance": 0.12783
}

Semantic roles & 50–950 ramp

primary
#335FC2
secondary
#CCB685
accent
#B246E2
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #335FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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