#335388#335388

#335388 is a dark, moderate blue. Relative luminance 0.087; OKLCH L 44.4% C 0.095 H 260.0°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#335388
RGBrgb(51, 83, 136)
HSLhsl(217, 45%, 37%)
HSVhsv(217, 63%, 53%)
CMYKcmyk(62.5%, 39%, 0%, 46.7%)
CIE-LABlab(35.34, 5.78, -33.12)
CIE-LCHlch(35.34, 33.62, 279.91°)
OKLaboklab(44.42% -0.0166 -0.094)
OKLCHoklch(44.42% 0.095 260)
XYZxyz(8.9009, 8.6671, 24.4916)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335388 #886833
analogous
#337E88 #335388 #3E3388
triadic
#335388 #883353 #538833
tetradic
#335388 #88337E #886833 #33883E
square
#335388 #88337E #886833 #33883E
split-complementary
#335388 #883E33 #7E8833
monochromatic
#121D2F #22385B #335388 #446EB5 #6D8FC8

Accessibility & contrast

On white

7.68
#335388 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#335388 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335388
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335388#FFFFFF#000000##FFFFFF
##3353881.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C578A
Deuteranopia (green-blind)
#314F87
Tritanopia (blue-blind)
#005F67
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #335388;
/* rgb */ color: rgb(51, 83, 136);
/* oklch */ color: oklch(44.4% 0.095 260.0);
Tailwind
colors: {
  custom: {
    50: '#7383ab',
    500: '#335388',
    950: '#000000',
  },
}
SCSS
$custom: #335388;
$custom-light: #7383ab;
$custom-dark: #000000;
JSON
{
  "hex": "#335388",
  "rgb": {
    "r": 51,
    "g": 83,
    "b": 136
  },
  "hsl": {
    "h": 217.412,
    "s": 45.455,
    "l": 36.667
  },
  "oklch": {
    "l": 0.44423,
    "c": 0.09545,
    "h": 260
  },
  "luminance": 0.08668
}

Semantic roles & 50–950 ramp

primary
#335388
secondary
#B09467
accent
#A453D5
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #335388

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

Preview Lab → · Contrast checker → · Palette generator →

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