#335DB5#335DB5

#335DB5 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.7% C 0.147 H 263.0°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#335DB5
RGBrgb(51, 93, 181)
HSLhsl(221, 56%, 45%)
HSVhsv(221, 72%, 71%)
CMYKcmyk(71.8%, 48.6%, 0%, 29%)
CIE-LABlab(41.00, 15.92, -51.00)
CIE-LCHlch(41.00, 53.43, 287.34°)
OKLaboklab(49.68% -0.018 -0.1463)
OKLCHoklch(49.68% 0.147 263)
XYZxyz(13.6171, 11.8673, 45.2801)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335DB5 #B58B33
analogous
#339EB5 #335DB5 #4A33B5
triadic
#335DB5 #B5335D #5DB533
tetradic
#335DB5 #B5339E #B58B33 #33B54A
square
#335DB5 #B5339E #B58B33 #33B54A
split-complementary
#335DB5 #B54A33 #9EB533
monochromatic
#182C56 #264485 #335DB5 #567DCF #86A2DD

Accessibility & contrast

On white

6.22
#335DB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#335DB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335DB5
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335DB5#FFFFFF#000000##FFFFFF
##335DB51.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C67B8
Deuteranopia (green-blind)
#035BB3
Tritanopia (blue-blind)
#007280
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #335db5;
/* rgb */ color: rgb(51, 93, 181);
/* oklch */ color: oklch(49.7% 0.147 263.0);
Tailwind
colors: {
  custom: {
    50: '#7b8acc',
    500: '#335db5',
    950: '#000000',
  },
}
SCSS
$custom: #335db5;
$custom-light: #7b8acc;
$custom-dark: #000000;
JSON
{
  "hex": "#335db5",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 181
  },
  "hsl": {
    "h": 220.615,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49682,
    "c": 0.14745,
    "h": 263
  },
  "luminance": 0.11869
}

Semantic roles & 50–950 ramp

primary
#335DB5
secondary
#C6AF7D
accent
#AF48DF
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #335DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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