#335987#335987

#335987 is a mid, moderate cyan. Relative luminance 0.096; OKLCH L 45.8% C 0.087 H 254.2°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#335987
RGBrgb(51, 89, 135)
HSLhsl(213, 45%, 36%)
HSVhsv(213, 62%, 53%)
CMYKcmyk(62.2%, 34.1%, 0%, 47.1%)
CIE-LABlab(37.11, 1.56, -29.71)
CIE-LCHlch(37.11, 29.75, 273.00°)
OKLaboklab(45.79% -0.0238 -0.084)
OKLCHoklch(45.79% 0.087 254.2)
XYZxyz(9.3092, 9.5970, 24.2788)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335987 #876133
analogous
#338387 #335987 #373387
triadic
#335987 #873359 #598733
tetradic
#335987 #873383 #876133 #338737
square
#335987 #873383 #876133 #338737
split-complementary
#335987 #873733 #838733
monochromatic
#111E2E #223C5B #335987 #4476B3 #6D96C8

Accessibility & contrast

On white

7.19
#335987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#335987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335987
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335987#FFFFFF#000000##FFFFFF
##3359871.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#465C89
Deuteranopia (green-blind)
#3A5486
Tritanopia (blue-blind)
#00646A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #335987;
/* rgb */ color: rgb(51, 89, 135);
/* oklch */ color: oklch(45.8% 0.087 254.2);
Tailwind
colors: {
  custom: {
    50: '#7387aa',
    500: '#335987',
    950: '#000000',
  },
}
SCSS
$custom: #335987;
$custom-light: #7387aa;
$custom-dark: #000000;
JSON
{
  "hex": "#335987",
  "rgb": {
    "r": 51,
    "g": 89,
    "b": 135
  },
  "hsl": {
    "h": 212.857,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45788,
    "c": 0.08728,
    "h": 254.2
  },
  "luminance": 0.09598
}

Semantic roles & 50–950 ramp

primary
#335987
secondary
#B08E66
accent
#9A53D5
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B10
muted
#7B7C7F

Preview Lab

Preview with #335987

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

Preview Lab → · Contrast checker → · Palette generator →

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