#335AA1#335AA1

#335AA1 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 47.6% C 0.123 H 261.3°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#335AA1
RGBrgb(51, 90, 161)
HSLhsl(219, 52%, 42%)
HSVhsv(219, 68%, 63%)
CMYKcmyk(68.3%, 44.1%, 0%, 36.9%)
CIE-LABlab(38.88, 10.41, -42.58)
CIE-LCHlch(38.88, 43.84, 283.74°)
OKLaboklab(47.64% -0.0186 -0.1216)
OKLCHoklch(47.64% 0.123 261.3)
XYZxyz(11.4521, 10.5882, 35.1515)
Luminance0.1059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335AA1 #A17A33
analogous
#3391A1 #335AA1 #4333A1
triadic
#335AA1 #A1335A #5AA133
tetradic
#335AA1 #A13391 #A17A33 #33A143
square
#335AA1 #A13391 #A17A33 #33A143
split-complementary
#335AA1 #A14333 #91A133
monochromatic
#162644 #244073 #335AA1 #4B77C6 #7A9AD5

Accessibility & contrast

On white

6.74
#335AA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#335AA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335AA1
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335AA1#FFFFFF#000000##FFFFFF
##335AA11.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3861A4
Deuteranopia (green-blind)
#2557A0
Tritanopia (blue-blind)
#006A75
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #335aa1;
/* rgb */ color: rgb(51, 90, 161);
/* oklch */ color: oklch(47.6% 0.123 261.3);
Tailwind
colors: {
  custom: {
    50: '#7788bd',
    500: '#335aa1',
    950: '#000000',
  },
}
SCSS
$custom: #335aa1;
$custom-light: #7788bd;
$custom-dark: #000000;
JSON
{
  "hex": "#335aa1",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 161
  },
  "hsl": {
    "h": 218.727,
    "s": 51.887,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47641,
    "c": 0.12305,
    "h": 261.3
  },
  "luminance": 0.10589
}

Semantic roles & 50–950 ramp

primary
#335AA1
secondary
#BDA372
accent
#A94CDB
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #335AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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