#335189#335189

#335189 is a dark, moderate blue. Relative luminance 0.084; OKLCH L 44.0% C 0.099 H 261.9°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#335189
RGBrgb(51, 81, 137)
HSLhsl(219, 46%, 37%)
HSVhsv(219, 63%, 54%)
CMYKcmyk(62.8%, 40.9%, 0%, 46.3%)
CIE-LABlab(34.79, 7.46, -34.60)
CIE-LCHlch(34.79, 35.39, 282.16°)
OKLaboklab(44.02% -0.0141 -0.0983)
OKLCHoklch(44.02% 0.099 261.9)
XYZxyz(8.8215, 8.3940, 24.8174)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335189 #896B33
analogous
#337C89 #335189 #403389
triadic
#335189 #893351 #518933
tetradic
#335189 #89337C #896B33 #338940
square
#335189 #89337C #896B33 #338940
split-complementary
#335189 #894033 #7C8933
monochromatic
#121C30 #22375C #335189 #446BB6 #6E8DC9

Accessibility & contrast

On white

7.84
#335189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#335189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335189
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335189#FFFFFF#000000##FFFFFF
##3351891.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39568B
Deuteranopia (green-blind)
#2D4E88
Tritanopia (blue-blind)
#005E66
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #335189;
/* rgb */ color: rgb(51, 81, 137);
/* oklch */ color: oklch(44.0% 0.099 261.9);
Tailwind
colors: {
  custom: {
    50: '#7381ac',
    500: '#335189',
    950: '#000000',
  },
}
SCSS
$custom: #335189;
$custom-light: #7381ac;
$custom-dark: #000000;
JSON
{
  "hex": "#335189",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 137
  },
  "hsl": {
    "h": 219.07,
    "s": 45.745,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44019,
    "c": 0.09934,
    "h": 261.9
  },
  "luminance": 0.08395
}

Semantic roles & 50–950 ramp

primary
#335189
secondary
#B19767
accent
#A852D5
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #335189

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

Preview Lab → · Contrast checker → · Palette generator →

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