#335F87#335F87

#335F87 is a mid, moderate cyan. Relative luminance 0.106; OKLCH L 47.2% C 0.082 H 247.8°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#335F87
RGBrgb(51, 95, 135)
HSLhsl(209, 45%, 36%)
HSVhsv(209, 62%, 53%)
CMYKcmyk(62.2%, 29.6%, 0%, 47.1%)
CIE-LABlab(38.96, -2.21, -26.81)
CIE-LCHlch(38.96, 26.90, 265.28°)
OKLaboklab(47.24% -0.0308 -0.0755)
OKLCHoklch(47.24% 0.082 247.8)
XYZxyz(9.8290, 10.6366, 24.4521)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335F87 #875B33
analogous
#338785 #335F87 #333587
triadic
#335F87 #87335F #5F8733
tetradic
#335F87 #853387 #875B33 #358733
square
#335F87 #853387 #875B33 #358733
split-complementary
#335F87 #873335 #878533
monochromatic
#11202E #22405B #335F87 #447EB3 #6D9CC8

Accessibility & contrast

On white

6.71
#335F87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#335F87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335F87
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335F87#FFFFFF#000000##FFFFFF
##335F871.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E6089
Deuteranopia (green-blind)
#435886
Tritanopia (blue-blind)
#00686D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #335f87;
/* rgb */ color: rgb(51, 95, 135);
/* oklch */ color: oklch(47.2% 0.082 247.8);
Tailwind
colors: {
  custom: {
    50: '#738caa',
    500: '#335f87',
    950: '#000000',
  },
}
SCSS
$custom: #335f87;
$custom-light: #738caa;
$custom-dark: #000000;
JSON
{
  "hex": "#335f87",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 135
  },
  "hsl": {
    "h": 208.571,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.47242,
    "c": 0.08152,
    "h": 247.8
  },
  "luminance": 0.10637
}

Semantic roles & 50–950 ramp

primary
#335F87
secondary
#B08966
accent
#9153D5
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#080C10
muted
#7B7D7F

Preview Lab

Preview with #335F87

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

Preview Lab → · Contrast checker → · Palette generator →

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