#335DC5#335DC5

#335DC5 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.9% C 0.169 H 264.5°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#335DC5
RGBrgb(51, 93, 197)
HSLhsl(223, 59%, 49%)
HSVhsv(223, 74%, 77%)
CMYKcmyk(74.1%, 52.8%, 0%, 22.7%)
CIE-LABlab(42.10, 21.90, -58.56)
CIE-LCHlch(42.10, 62.52, 290.50°)
OKLaboklab(50.86% -0.0162 -0.1686)
OKLCHoklch(50.86% 0.169 264.5)
XYZxyz(15.3541, 12.5620, 54.4280)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335DC5 #C59B33
analogous
#33A6C5 #335DC5 #5233C5
triadic
#335DC5 #C5335D #5DC533
tetradic
#335DC5 #C533A6 #C59B33 #33C552
square
#335DC5 #C533A6 #C59B33 #33C552
split-complementary
#335DC5 #C55233 #A6C533
monochromatic
#1A2F64 #264694 #335DC5 #5F81D6 #90A8E2

Accessibility & contrast

On white

5.98
#335DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#335DC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335DC5
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335DC5#FFFFFF#000000##FFFFFF
##335DC51.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#126AC9
Deuteranopia (green-blind)
#005DC3
Tritanopia (blue-blind)
#007688
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #335dc5;
/* rgb */ color: rgb(51, 93, 197);
/* oklch */ color: oklch(50.9% 0.169 264.5);
Tailwind
colors: {
  custom: {
    50: '#7f8ad7',
    500: '#335dc5',
    950: '#000000',
  },
}
SCSS
$custom: #335dc5;
$custom-light: #7f8ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#335dc5",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 197
  },
  "hsl": {
    "h": 222.74,
    "s": 58.871,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50861,
    "c": 0.16936,
    "h": 264.5
  },
  "luminance": 0.12564
}

Semantic roles & 50–950 ramp

primary
#335DC5
secondary
#CDB987
accent
#B546E2
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #335DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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