#335B87#335B87

#335B87 is a mid, moderate cyan. Relative luminance 0.099; OKLCH L 46.3% C 0.085 H 252.2°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#335B87
RGBrgb(51, 91, 135)
HSLhsl(211, 45%, 36%)
HSVhsv(211, 62%, 53%)
CMYKcmyk(62.2%, 32.6%, 0%, 47.1%)
CIE-LABlab(37.72, 0.29, -28.74)
CIE-LCHlch(37.72, 28.75, 270.58°)
OKLaboklab(46.27% -0.0261 -0.0811)
OKLCHoklch(46.27% 0.085 252.2)
XYZxyz(9.4779, 9.9344, 24.3350)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B87 #875F33
analogous
#338587 #335B87 #353387
triadic
#335B87 #87335B #5B8733
tetradic
#335B87 #873385 #875F33 #338735
square
#335B87 #873385 #875F33 #338735
split-complementary
#335B87 #873533 #858733
monochromatic
#111F2E #223D5B #335B87 #4479B3 #6D98C8

Accessibility & contrast

On white

7.03
#335B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#335B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335B87
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B87#FFFFFF#000000##FFFFFF
##335B871.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#485D89
Deuteranopia (green-blind)
#3D5586
Tritanopia (blue-blind)
#00656B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #335b87;
/* rgb */ color: rgb(51, 91, 135);
/* oklch */ color: oklch(46.3% 0.085 252.2);
Tailwind
colors: {
  custom: {
    50: '#7389aa',
    500: '#335b87',
    950: '#000000',
  },
}
SCSS
$custom: #335b87;
$custom-light: #7389aa;
$custom-dark: #000000;
JSON
{
  "hex": "#335b87",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 135
  },
  "hsl": {
    "h": 211.429,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4627,
    "c": 0.08524,
    "h": 252.2
  },
  "luminance": 0.09935
}

Semantic roles & 50–950 ramp

primary
#335B87
secondary
#B08D66
accent
#9753D5
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B10
muted
#7B7C7F

Preview Lab

Preview with #335B87

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

Preview Lab → · Contrast checker → · Palette generator →

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