#335891#335891

#335891 is a mid, moderate blue. Relative luminance 0.097; OKLCH L 46.2% C 0.103 H 258.8°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#335891
RGBrgb(51, 88, 145)
HSLhsl(216, 48%, 38%)
HSVhsv(216, 65%, 57%)
CMYKcmyk(64.8%, 39.3%, 0%, 43.1%)
CIE-LABlab(37.35, 5.81, -35.41)
CIE-LCHlch(37.35, 35.88, 279.32°)
OKLaboklab(46.15% -0.02 -0.1006)
OKLCHoklch(46.15% 0.103 258.8)
XYZxyz(9.9640, 9.7267, 28.1349)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335891 #916C33
analogous
#338791 #335891 #3D3391
triadic
#335891 #913358 #589133
tetradic
#335891 #913387 #916C33 #33913D
square
#335891 #913387 #916C33 #33913D
split-complementary
#335891 #913D33 #879133
monochromatic
#132136 #233D64 #335891 #4474BD #7195CD

Accessibility & contrast

On white

7.13
#335891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#335891 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335891
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335891#FFFFFF#000000##FFFFFF
##3358911.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5D93
Deuteranopia (green-blind)
#325490
Tritanopia (blue-blind)
#00656D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #335891;
/* rgb */ color: rgb(51, 88, 145);
/* oklch */ color: oklch(46.2% 0.103 258.8);
Tailwind
colors: {
  custom: {
    50: '#7486b1',
    500: '#335891',
    950: '#000000',
  },
}
SCSS
$custom: #335891;
$custom-light: #7486b1;
$custom-dark: #000000;
JSON
{
  "hex": "#335891",
  "rgb": {
    "r": 51,
    "g": 88,
    "b": 145
  },
  "hsl": {
    "h": 216.383,
    "s": 47.959,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46151,
    "c": 0.10258,
    "h": 258.8
  },
  "luminance": 0.09728
}

Semantic roles & 50–950 ramp

primary
#335891
secondary
#B5986B
accent
#A250D8
background
#F7F8FA
surface
#EDEFF5
border
#C8CACF
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335891

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

Preview Lab → · Contrast checker → · Palette generator →

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