#335C87#335C87

#335C87 is a mid, moderate cyan. Relative luminance 0.101; OKLCH L 46.5% C 0.084 H 251.1°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#335C87
RGBrgb(51, 92, 135)
HSLhsl(211, 45%, 36%)
HSVhsv(211, 62%, 53%)
CMYKcmyk(62.2%, 31.9%, 0%, 47.1%)
CIE-LABlab(38.03, -0.34, -28.26)
CIE-LCHlch(38.03, 28.26, 269.31°)
OKLaboklab(46.51% -0.0273 -0.0797)
OKLCHoklch(46.51% 0.084 251.1)
XYZxyz(9.5640, 10.1065, 24.3637)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335C87 #875E33
analogous
#338687 #335C87 #343387
triadic
#335C87 #87335C #5C8733
tetradic
#335C87 #873386 #875E33 #338734
square
#335C87 #873386 #875E33 #338734
split-complementary
#335C87 #873433 #868733
monochromatic
#111F2E #223E5B #335C87 #447AB3 #6D99C8

Accessibility & contrast

On white

6.95
#335C87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#335C87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335C87
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335C87#FFFFFF#000000##FFFFFF
##335C871.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A5E89
Deuteranopia (green-blind)
#3F5686
Tritanopia (blue-blind)
#00666B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #335c87;
/* rgb */ color: rgb(51, 92, 135);
/* oklch */ color: oklch(46.5% 0.084 251.1);
Tailwind
colors: {
  custom: {
    50: '#7389aa',
    500: '#335c87',
    950: '#000000',
  },
}
SCSS
$custom: #335c87;
$custom-light: #7389aa;
$custom-dark: #000000;
JSON
{
  "hex": "#335c87",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 135
  },
  "hsl": {
    "h": 210.714,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.46512,
    "c": 0.08426,
    "h": 251.1
  },
  "luminance": 0.10107
}

Semantic roles & 50–950 ramp

primary
#335C87
secondary
#B08C66
accent
#9553D5
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#080B10
muted
#7B7C7F

Preview Lab

Preview with #335C87

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

Preview Lab → · Contrast checker → · Palette generator →

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