#335791#335791

#335791 is a mid, moderate blue. Relative luminance 0.096; OKLCH L 45.9% C 0.104 H 259.5°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#335791
RGBrgb(51, 87, 145)
HSLhsl(217, 48%, 38%)
HSVhsv(217, 65%, 57%)
CMYKcmyk(64.8%, 40%, 0%, 43.1%)
CIE-LABlab(37.05, 6.46, -35.88)
CIE-LCHlch(37.05, 36.46, 280.21°)
OKLaboklab(45.92% -0.0189 -0.102)
OKLCHoklch(45.92% 0.104 259.5)
XYZxyz(9.8825, 9.5636, 28.1077)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335791 #916D33
analogous
#338691 #335791 #3E3391
triadic
#335791 #913357 #579133
tetradic
#335791 #913386 #916D33 #33913E
square
#335791 #913386 #916D33 #33913E
split-complementary
#335791 #913E33 #869133
monochromatic
#132136 #233C64 #335791 #4472BD #7194CD

Accessibility & contrast

On white

7.21
#335791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#335791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335791
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335791#FFFFFF#000000##FFFFFF
##3357911.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5C93
Deuteranopia (green-blind)
#305390
Tritanopia (blue-blind)
#00646D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #335791;
/* rgb */ color: rgb(51, 87, 145);
/* oklch */ color: oklch(45.9% 0.104 259.5);
Tailwind
colors: {
  custom: {
    50: '#7486b1',
    500: '#335791',
    950: '#000000',
  },
}
SCSS
$custom: #335791;
$custom-light: #7486b1;
$custom-dark: #000000;
JSON
{
  "hex": "#335791",
  "rgb": {
    "r": 51,
    "g": 87,
    "b": 145
  },
  "hsl": {
    "h": 217.021,
    "s": 47.959,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45918,
    "c": 0.10376,
    "h": 259.5
  },
  "luminance": 0.09565
}

Semantic roles & 50–950 ramp

primary
#335791
secondary
#B5996B
accent
#A450D8
background
#F7F8FA
surface
#EDEFF5
border
#C8CACF
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335791

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

Preview Lab → · Contrast checker → · Palette generator →

#335791 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva