#335EA1#335EA1

#335EA1 is a mid, moderate blue. Relative luminance 0.113; OKLCH L 48.5% C 0.118 H 259.0°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#335EA1
RGBrgb(51, 94, 161)
HSLhsl(217, 52%, 42%)
HSVhsv(217, 68%, 63%)
CMYKcmyk(68.3%, 41.6%, 0%, 36.9%)
CIE-LABlab(40.05, 7.83, -40.71)
CIE-LCHlch(40.05, 41.46, 280.88°)
OKLaboklab(48.55% -0.0226 -0.1161)
OKLCHoklch(48.55% 0.118 259)
XYZxyz(11.7987, 11.2812, 35.2670)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335EA1 #A17633
analogous
#3395A1 #335EA1 #3F33A1
triadic
#335EA1 #A1335E #5EA133
tetradic
#335EA1 #A13395 #A17633 #33A13F
square
#335EA1 #A13395 #A17633 #33A13F
split-complementary
#335EA1 #A13F33 #95A133
monochromatic
#162844 #244373 #335EA1 #4B7BC6 #7A9DD5

Accessibility & contrast

On white

6.45
#335EA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#335EA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335EA1
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335EA1#FFFFFF#000000##FFFFFF
##335EA11.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #335ea1;
/* rgb */ color: rgb(51, 94, 161);
/* oklch */ color: oklch(48.5% 0.118 259.0);
Tailwind
colors: {
  custom: {
    50: '#778bbd',
    500: '#335ea1',
    950: '#000000',
  },
}
SCSS
$custom: #335ea1;
$custom-light: #778bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#335ea1",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 161
  },
  "hsl": {
    "h": 216.545,
    "s": 51.887,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48547,
    "c": 0.11827,
    "h": 259
  },
  "luminance": 0.11282
}

Semantic roles & 50–950 ramp

primary
#335EA1
secondary
#BDA072
accent
#A34CDB
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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