#335289#335289

#335289 is a dark, moderate blue. Relative luminance 0.085; OKLCH L 44.3% C 0.098 H 261.1°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#335289
RGBrgb(51, 82, 137)
HSLhsl(218, 46%, 37%)
HSVhsv(218, 63%, 54%)
CMYKcmyk(62.8%, 40.1%, 0%, 46.3%)
CIE-LABlab(35.09, 6.80, -34.12)
CIE-LCHlch(35.09, 34.79, 281.27°)
OKLaboklab(44.25% -0.0152 -0.0969)
OKLCHoklch(44.25% 0.098 261.1)
XYZxyz(8.8963, 8.5437, 24.8423)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335289 #896A33
analogous
#337D89 #335289 #3F3389
triadic
#335289 #893352 #528933
tetradic
#335289 #89337D #896A33 #33893F
square
#335289 #89337D #896A33 #33893F
split-complementary
#335289 #893F33 #7D8933
monochromatic
#121D30 #22375C #335289 #446DB6 #6E8EC9

Accessibility & contrast

On white

7.75
#335289 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#335289 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335289
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335289#FFFFFF#000000##FFFFFF
##3352891.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A578B
Deuteranopia (green-blind)
#2E4F88
Tritanopia (blue-blind)
#005E67
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #335289;
/* rgb */ color: rgb(51, 82, 137);
/* oklch */ color: oklch(44.3% 0.098 261.1);
Tailwind
colors: {
  custom: {
    50: '#7382ac',
    500: '#335289',
    950: '#000000',
  },
}
SCSS
$custom: #335289;
$custom-light: #7382ac;
$custom-dark: #000000;
JSON
{
  "hex": "#335289",
  "rgb": {
    "r": 51,
    "g": 82,
    "b": 137
  },
  "hsl": {
    "h": 218.372,
    "s": 45.745,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44252,
    "c": 0.09812,
    "h": 261.1
  },
  "luminance": 0.08545
}

Semantic roles & 50–950 ramp

primary
#335289
secondary
#B19667
accent
#A652D5
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #335289

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

Preview Lab → · Contrast checker → · Palette generator →

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