#335FCD#335FCD

#335FCD is a mid, vivid blue. Relative luminance 0.133; OKLCH L 51.9% C 0.178 H 264.5°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#335FCD
RGBrgb(51, 95, 205)
HSLhsl(223, 61%, 50%)
HSVhsv(223, 75%, 80%)
CMYKcmyk(75.1%, 53.7%, 0%, 19.6%)
CIE-LABlab(43.20, 23.59, -61.39)
CIE-LCHlch(43.20, 65.76, 291.02°)
OKLaboklab(51.88% -0.017 -0.1769)
OKLCHoklch(51.88% 0.178 264.5)
XYZxyz(16.4730, 13.2942, 59.4436)
Luminance0.1330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335FCD #CDA133
analogous
#33ACCD #335FCD #5433CD
triadic
#335FCD #CD335F #5FCD33
tetradic
#335FCD #CD33AC #CDA133 #33CD54
square
#335FCD #CD33AC #CDA133 #33CD54
split-complementary
#335FCD #CD5433 #ACCD33
monochromatic
#1A316B #26489C #335FCD #6486D9 #95ACE5

Accessibility & contrast

On white

5.74
#335FCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#335FCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335FCD
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335FCD#FFFFFF#000000##FFFFFF
##335FCD1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#016DD1
Deuteranopia (green-blind)
#005FCB
Tritanopia (blue-blind)
#007A8D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #335fcd;
/* rgb */ color: rgb(51, 95, 205);
/* oklch */ color: oklch(51.9% 0.178 264.5);
Tailwind
colors: {
  custom: {
    50: '#808bdd',
    500: '#335fcd',
    950: '#000000',
  },
}
SCSS
$custom: #335fcd;
$custom-light: #808bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#335fcd",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 205
  },
  "hsl": {
    "h": 222.857,
    "s": 60.63,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5188,
    "c": 0.17768,
    "h": 264.5
  },
  "luminance": 0.13296
}

Semantic roles & 50–950 ramp

primary
#335FCD
secondary
#D0BD8B
accent
#B644E4
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #335FCD

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

Preview Lab → · Contrast checker → · Palette generator →

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