#335386#335386

#335386 is a dark, moderate blue. Relative luminance 0.086; OKLCH L 44.3% C 0.093 H 259.3°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#335386
RGBrgb(51, 83, 134)
HSLhsl(217, 45%, 36%)
HSVhsv(217, 62%, 53%)
CMYKcmyk(61.9%, 38.1%, 0%, 47.5%)
CIE-LABlab(35.22, 5.06, -32.08)
CIE-LCHlch(35.22, 32.47, 278.97°)
OKLaboklab(44.3% -0.0171 -0.0909)
OKLCHoklch(44.3% 0.093 259.3)
XYZxyz(8.7601, 8.6108, 23.7500)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335386 #866633
analogous
#337D86 #335386 #3D3386
triadic
#335386 #863353 #538633
tetradic
#335386 #86337D #866633 #33863D
square
#335386 #86337D #866633 #33863D
split-complementary
#335386 #863D33 #7D8633
monochromatic
#111C2D #22385A #335386 #446EB2 #6C8FC7

Accessibility & contrast

On white

7.71
#335386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#335386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335386
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335386#FFFFFF#000000##FFFFFF
##3353861.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5788
Deuteranopia (green-blind)
#324F85
Tritanopia (blue-blind)
#005E66
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #335386;
/* rgb */ color: rgb(51, 83, 134);
/* oklch */ color: oklch(44.3% 0.093 259.3);
Tailwind
colors: {
  custom: {
    50: '#7283a9',
    500: '#335386',
    950: '#000000',
  },
}
SCSS
$custom: #335386;
$custom-light: #7283a9;
$custom-dark: #000000;
JSON
{
  "hex": "#335386",
  "rgb": {
    "r": 51,
    "g": 83,
    "b": 134
  },
  "hsl": {
    "h": 216.867,
    "s": 44.865,
    "l": 36.275
  },
  "oklch": {
    "l": 0.443,
    "c": 0.09252,
    "h": 259.3
  },
  "luminance": 0.08612
}

Semantic roles & 50–950 ramp

primary
#335386
secondary
#AF9366
accent
#A353D5
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #335386

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

Preview Lab → · Contrast checker → · Palette generator →

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