#335787#335787

#335787 is a mid, moderate cyan. Relative luminance 0.093; OKLCH L 45.3% C 0.089 H 256.1°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#335787
RGBrgb(51, 87, 135)
HSLhsl(214, 45%, 36%)
HSVhsv(214, 62%, 53%)
CMYKcmyk(62.2%, 35.6%, 0%, 47.1%)
CIE-LABlab(36.50, 2.84, -30.68)
CIE-LCHlch(36.50, 30.81, 275.28°)
OKLaboklab(45.31% -0.0215 -0.0868)
OKLCHoklch(45.31% 0.089 256.1)
XYZxyz(9.1451, 9.2686, 24.2241)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335787 #876333
analogous
#338187 #335787 #393387
triadic
#335787 #873357 #578733
tetradic
#335787 #873381 #876333 #338739
square
#335787 #873381 #876333 #338739
split-complementary
#335787 #873933 #818733
monochromatic
#111E2E #223A5B #335787 #4474B3 #6D94C8

Accessibility & contrast

On white

7.36
#335787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#335787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335787
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335787#FFFFFF#000000##FFFFFF
##3357871.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435A89
Deuteranopia (green-blind)
#385286
Tritanopia (blue-blind)
#006268
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #335787;
/* rgb */ color: rgb(51, 87, 135);
/* oklch */ color: oklch(45.3% 0.089 256.1);
Tailwind
colors: {
  custom: {
    50: '#7386aa',
    500: '#335787',
    950: '#000000',
  },
}
SCSS
$custom: #335787;
$custom-light: #7386aa;
$custom-dark: #000000;
JSON
{
  "hex": "#335787",
  "rgb": {
    "r": 51,
    "g": 87,
    "b": 135
  },
  "hsl": {
    "h": 214.286,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45309,
    "c": 0.08943,
    "h": 256.1
  },
  "luminance": 0.09269
}

Semantic roles & 50–950 ramp

primary
#335787
secondary
#B09066
accent
#9D53D5
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B10
muted
#7B7C7F

Preview Lab

Preview with #335787

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

Preview Lab → · Contrast checker → · Palette generator →

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