#335DA1#335DA1

#335DA1 is a mid, moderate blue. Relative luminance 0.111; OKLCH L 48.3% C 0.119 H 259.6°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#335DA1
RGBrgb(51, 93, 161)
HSLhsl(217, 52%, 42%)
HSVhsv(217, 68%, 63%)
CMYKcmyk(68.3%, 42.2%, 0%, 36.9%)
CIE-LABlab(39.76, 8.47, -41.18)
CIE-LCHlch(39.76, 42.04, 281.62°)
OKLaboklab(48.32% -0.0216 -0.1175)
OKLCHoklch(48.32% 0.119 259.6)
XYZxyz(11.7103, 11.1045, 35.2376)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335DA1 #A17733
analogous
#3394A1 #335DA1 #4033A1
triadic
#335DA1 #A1335D #5DA133
tetradic
#335DA1 #A13394 #A17733 #33A140
square
#335DA1 #A13394 #A17733 #33A140
split-complementary
#335DA1 #A14033 #94A133
monochromatic
#162744 #244273 #335DA1 #4B7AC6 #7A9CD5

Accessibility & contrast

On white

6.52
#335DA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#335DA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335DA1
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335DA1#FFFFFF#000000##FFFFFF
##335DA11.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D63A4
Deuteranopia (green-blind)
#2C59A0
Tritanopia (blue-blind)
#006D77
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #335da1;
/* rgb */ color: rgb(51, 93, 161);
/* oklch */ color: oklch(48.3% 0.119 259.6);
Tailwind
colors: {
  custom: {
    50: '#778abd',
    500: '#335da1',
    950: '#000000',
  },
}
SCSS
$custom: #335da1;
$custom-light: #778abd;
$custom-dark: #000000;
JSON
{
  "hex": "#335da1",
  "rgb": {
    "r": 51,
    "g": 93,
    "b": 161
  },
  "hsl": {
    "h": 217.091,
    "s": 51.887,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48319,
    "c": 0.11945,
    "h": 259.6
  },
  "luminance": 0.11106
}

Semantic roles & 50–950 ramp

primary
#335DA1
secondary
#BDA172
accent
#A54CDB
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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