#335DB2#335DB2

#335DB2 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.5% C 0.143 H 262.6°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#335DB2
RGBrgb(51, 93, 178)
HSLhsl(220, 55%, 45%)
HSVhsv(220, 71%, 70%)
CMYKcmyk(71.3%, 47.8%, 0%, 30.2%)
CIE-LABlab(40.81, 14.80, -49.55)
CIE-LCHlch(40.81, 51.72, 286.63°)
OKLaboklab(49.47% -0.0185 -0.1421)
OKLCHoklch(49.47% 0.143 262.6)
XYZxyz(13.3126, 11.7455, 43.6764)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335DB2 #B28833
analogous
#339DB2 #335DB2 #4833B2
triadic
#335DB2 #B2335D #5DB233
tetradic
#335DB2 #B2339D #B28833 #33B248
square
#335DB2 #B2339D #B28833 #33B248
split-complementary
#335DB2 #B24833 #9DB233
monochromatic
#182B53 #254482 #335DB2 #547CCE #84A1DC

Accessibility & contrast

On white

6.27
#335DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#335DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335DB2
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335DB2#FFFFFF#000000##FFFFFF
##335DB21.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3066B5
Deuteranopia (green-blind)
#0F5BB0
Tritanopia (blue-blind)
#00717F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #335db2;
/* rgb */ color: rgb(51, 93, 178);
/* oklch */ color: oklch(49.5% 0.143 262.6);
Tailwind
colors: {
  custom: {
    50: '#7a8ac9',
    500: '#335db2',
    950: '#000000',
  },
}
SCSS
$custom: #335db2;
$custom-light: #7a8ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#335db2",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 178
  },
  "hsl": {
    "h": 220.157,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49469,
    "c": 0.14329,
    "h": 262.6
  },
  "luminance": 0.11747
}

Semantic roles & 50–950 ramp

primary
#335DB2
secondary
#C5AD7C
accent
#AD49DF
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #335DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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