#335DB3#335DB3

#335DB3 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.5% C 0.145 H 262.7°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#335DB3
RGBrgb(51, 93, 179)
HSLhsl(220, 56%, 45%)
HSVhsv(220, 72%, 70%)
CMYKcmyk(71.5%, 48%, 0%, 29.8%)
CIE-LABlab(40.87, 15.17, -50.04)
CIE-LCHlch(40.87, 52.29, 286.87°)
OKLaboklab(49.54% -0.0183 -0.1435)
OKLCHoklch(49.54% 0.145 262.7)
XYZxyz(13.4134, 11.7858, 44.2071)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335DB3 #B38933
analogous
#339DB3 #335DB3 #4933B3
triadic
#335DB3 #B3335D #5DB333
tetradic
#335DB3 #B3339D #B38933 #33B349
square
#335DB3 #B3339D #B38933 #33B349
split-complementary
#335DB3 #B34933 #9DB333
monochromatic
#182C54 #254483 #335DB3 #557DCE #84A1DC

Accessibility & contrast

On white

6.25
#335DB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#335DB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335DB3
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335DB3#FFFFFF#000000##FFFFFF
##335DB31.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F67B6
Deuteranopia (green-blind)
#0C5BB1
Tritanopia (blue-blind)
#00717F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #335db3;
/* rgb */ color: rgb(51, 93, 179);
/* oklch */ color: oklch(49.5% 0.145 262.7);
Tailwind
colors: {
  custom: {
    50: '#7b8aca',
    500: '#335db3',
    950: '#000000',
  },
}
SCSS
$custom: #335db3;
$custom-light: #7b8aca;
$custom-dark: #000000;
JSON
{
  "hex": "#335db3",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 179
  },
  "hsl": {
    "h": 220.313,
    "s": 55.652,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4954,
    "c": 0.14468,
    "h": 262.7
  },
  "luminance": 0.11787
}

Semantic roles & 50–950 ramp

primary
#335DB3
secondary
#C6AE7C
accent
#AE49DF
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #335DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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