#335986#335986

#335986 is a mid, moderate cyan. Relative luminance 0.096; OKLCH L 45.7% C 0.086 H 253.7°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#335986
RGBrgb(51, 89, 134)
HSLhsl(213, 45%, 36%)
HSVhsv(213, 62%, 53%)
CMYKcmyk(61.9%, 33.6%, 0%, 47.5%)
CIE-LABlab(37.06, 1.20, -29.18)
CIE-LCHlch(37.06, 29.21, 272.36°)
OKLaboklab(45.73% -0.0241 -0.0824)
OKLCHoklch(45.73% 0.086 253.7)
XYZxyz(9.2392, 9.5690, 23.9097)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335986 #866033
analogous
#338386 #335986 #373386
triadic
#335986 #863359 #598633
tetradic
#335986 #863383 #866033 #338637
square
#335986 #863383 #866033 #338637
split-complementary
#335986 #863733 #838633
monochromatic
#111E2D #223C5A #335986 #4476B2 #6C96C7

Accessibility & contrast

On white

7.21
#335986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#335986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335986
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335986#FFFFFF#000000##FFFFFF
##3359861.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#465C88
Deuteranopia (green-blind)
#3B5485
Tritanopia (blue-blind)
#006369
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #335986;
/* rgb */ color: rgb(51, 89, 134);
/* oklch */ color: oklch(45.7% 0.086 253.7);
Tailwind
colors: {
  custom: {
    50: '#7287a9',
    500: '#335986',
    950: '#000000',
  },
}
SCSS
$custom: #335986;
$custom-light: #7287a9;
$custom-dark: #000000;
JSON
{
  "hex": "#335986",
  "rgb": {
    "r": 51,
    "g": 89,
    "b": 134
  },
  "hsl": {
    "h": 212.53,
    "s": 44.865,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45731,
    "c": 0.08589,
    "h": 253.7
  },
  "luminance": 0.0957
}

Semantic roles & 50–950 ramp

primary
#335986
secondary
#AF8D66
accent
#9953D5
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B10
muted
#7B7C7F

Preview Lab

Preview with #335986

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

Preview Lab → · Contrast checker → · Palette generator →

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