#335286#335286

#335286 is a dark, moderate blue. Relative luminance 0.085; OKLCH L 44.1% C 0.094 H 260.2°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#335286
RGBrgb(51, 82, 134)
HSLhsl(218, 45%, 36%)
HSVhsv(218, 62%, 53%)
CMYKcmyk(61.9%, 38.8%, 0%, 47.5%)
CIE-LABlab(34.92, 5.71, -32.55)
CIE-LCHlch(34.92, 33.05, 279.95°)
OKLaboklab(44.07% -0.0159 -0.0923)
OKLCHoklch(44.07% 0.094 260.2)
XYZxyz(8.6841, 8.4589, 23.7247)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335286 #866733
analogous
#337C86 #335286 #3E3386
triadic
#335286 #863352 #528633
tetradic
#335286 #86337C #866733 #33863E
square
#335286 #86337C #866733 #33863E
split-complementary
#335286 #863E33 #7C8633
monochromatic
#111C2D #22375A #335286 #446DB2 #6C8EC7

Accessibility & contrast

On white

7.80
#335286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#335286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335286
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335286#FFFFFF#000000##FFFFFF
##3352861.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5688
Deuteranopia (green-blind)
#314F85
Tritanopia (blue-blind)
#005E65
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #335286;
/* rgb */ color: rgb(51, 82, 134);
/* oklch */ color: oklch(44.1% 0.094 260.2);
Tailwind
colors: {
  custom: {
    50: '#7282a9',
    500: '#335286',
    950: '#000000',
  },
}
SCSS
$custom: #335286;
$custom-light: #7282a9;
$custom-dark: #000000;
JSON
{
  "hex": "#335286",
  "rgb": {
    "r": 51,
    "g": 82,
    "b": 134
  },
  "hsl": {
    "h": 217.59,
    "s": 44.865,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44065,
    "c": 0.09372,
    "h": 260.2
  },
  "luminance": 0.0846
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335286

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

Preview Lab → · Contrast checker → · Palette generator →

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