#335A87#335A87

#335A87 is a mid, moderate cyan. Relative luminance 0.098; OKLCH L 46.0% C 0.086 H 253.2°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#335A87
RGBrgb(51, 90, 135)
HSLhsl(212, 45%, 36%)
HSVhsv(212, 62%, 53%)
CMYKcmyk(62.2%, 33.3%, 0%, 47.1%)
CIE-LABlab(37.42, 0.92, -29.23)
CIE-LCHlch(37.42, 29.24, 271.81°)
OKLaboklab(46.03% -0.025 -0.0826)
OKLCHoklch(46.03% 0.086 253.2)
XYZxyz(9.3930, 9.7646, 24.3067)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A87 #876033
analogous
#338487 #335A87 #363387
triadic
#335A87 #87335A #5A8733
tetradic
#335A87 #873384 #876033 #338736
square
#335A87 #873384 #876033 #338736
split-complementary
#335A87 #873633 #848733
monochromatic
#111F2E #223C5B #335A87 #4478B3 #6D97C8

Accessibility & contrast

On white

7.11
#335A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#335A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335A87
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A87#FFFFFF#000000##FFFFFF
##335A871.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475C89
Deuteranopia (green-blind)
#3C5486
Tritanopia (blue-blind)
#00646A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #335a87;
/* rgb */ color: rgb(51, 90, 135);
/* oklch */ color: oklch(46.0% 0.086 253.2);
Tailwind
colors: {
  custom: {
    50: '#7388aa',
    500: '#335a87',
    950: '#000000',
  },
}
SCSS
$custom: #335a87;
$custom-light: #7388aa;
$custom-dark: #000000;
JSON
{
  "hex": "#335a87",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 135
  },
  "hsl": {
    "h": 212.143,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.46029,
    "c": 0.08625,
    "h": 253.2
  },
  "luminance": 0.09765
}

Semantic roles & 50–950 ramp

primary
#335A87
secondary
#B08E66
accent
#9953D5
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B10
muted
#7B7C7F

Preview Lab

Preview with #335A87

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

Preview Lab → · Contrast checker → · Palette generator →

#335A87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva