#335887#335887

#335887 is a mid, moderate cyan. Relative luminance 0.094; OKLCH L 45.5% C 0.088 H 255.2°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#335887
RGBrgb(51, 88, 135)
HSLhsl(214, 45%, 36%)
HSVhsv(214, 62%, 53%)
CMYKcmyk(62.2%, 34.8%, 0%, 47.1%)
CIE-LABlab(36.80, 2.20, -30.19)
CIE-LCHlch(36.80, 30.27, 274.16°)
OKLaboklab(45.55% -0.0226 -0.0854)
OKLCHoklch(45.55% 0.088 255.2)
XYZxyz(9.2266, 9.4317, 24.2512)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335887 #876233
analogous
#338287 #335887 #383387
triadic
#335887 #873358 #588733
tetradic
#335887 #873382 #876233 #338738
square
#335887 #873382 #876233 #338738
split-complementary
#335887 #873833 #828733
monochromatic
#111E2E #223B5B #335887 #4475B3 #6D95C8

Accessibility & contrast

On white

7.27
#335887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#335887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335887
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335887#FFFFFF#000000##FFFFFF
##3358871.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445B89
Deuteranopia (green-blind)
#395386
Tritanopia (blue-blind)
#006369
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #335887;
/* rgb */ color: rgb(51, 88, 135);
/* oklch */ color: oklch(45.5% 0.088 255.2);
Tailwind
colors: {
  custom: {
    50: '#7386aa',
    500: '#335887',
    950: '#000000',
  },
}
SCSS
$custom: #335887;
$custom-light: #7386aa;
$custom-dark: #000000;
JSON
{
  "hex": "#335887",
  "rgb": {
    "r": 51,
    "g": 88,
    "b": 135
  },
  "hsl": {
    "h": 213.571,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45548,
    "c": 0.08834,
    "h": 255.2
  },
  "luminance": 0.09433
}

Semantic roles & 50–950 ramp

primary
#335887
secondary
#B08F66
accent
#9C53D5
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B10
muted
#7B7C7F

Preview Lab

Preview with #335887

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

Preview Lab → · Contrast checker → · Palette generator →

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