#335DB1#335DB1

#335DB1 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.4% C 0.142 H 262.5°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#335DB1
RGBrgb(51, 93, 177)
HSLhsl(220, 55%, 45%)
HSVhsv(220, 71%, 69%)
CMYKcmyk(71.2%, 47.5%, 0%, 30.6%)
CIE-LABlab(40.74, 14.43, -49.07)
CIE-LCHlch(40.74, 51.15, 286.38°)
OKLaboklab(49.4% -0.0186 -0.1407)
OKLCHoklch(49.4% 0.142 262.5)
XYZxyz(13.2126, 11.7055, 43.1495)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335DB1 #B18733
analogous
#339CB1 #335DB1 #4833B1
triadic
#335DB1 #B1335D #5DB133
tetradic
#335DB1 #B1339C #B18733 #33B148
square
#335DB1 #B1339C #B18733 #33B148
split-complementary
#335DB1 #B14833 #9CB133
monochromatic
#182B52 #254481 #335DB1 #547CCE #83A1DB

Accessibility & contrast

On white

6.28
#335DB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#335DB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335DB1
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335DB1#FFFFFF#000000##FFFFFF
##335DB11.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3166B4
Deuteranopia (green-blind)
#125BAF
Tritanopia (blue-blind)
#00717E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #335db1;
/* rgb */ color: rgb(51, 93, 177);
/* oklch */ color: oklch(49.4% 0.142 262.5);
Tailwind
colors: {
  custom: {
    50: '#7a8ac9',
    500: '#335db1',
    950: '#000000',
  },
}
SCSS
$custom: #335db1;
$custom-light: #7a8ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#335db1",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 177
  },
  "hsl": {
    "h": 220,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49399,
    "c": 0.14189,
    "h": 262.5
  },
  "luminance": 0.11707
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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