#335A88#335A88

#335A88 is a mid, moderate cyan. Relative luminance 0.098; OKLCH L 46.1% C 0.088 H 253.7°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#335A88
RGBrgb(51, 90, 136)
HSLhsl(212, 45%, 37%)
HSVhsv(212, 63%, 53%)
CMYKcmyk(62.5%, 33.8%, 0%, 46.7%)
CIE-LABlab(37.47, 1.28, -29.76)
CIE-LCHlch(37.47, 29.78, 272.46°)
OKLaboklab(46.09% -0.0247 -0.0841)
OKLCHoklch(46.09% 0.088 253.7)
XYZxyz(9.4637, 9.7928, 24.6793)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A88 #886133
analogous
#338588 #335A88 #373388
triadic
#335A88 #88335A #5A8833
tetradic
#335A88 #883385 #886133 #338837
square
#335A88 #883385 #886133 #338837
split-complementary
#335A88 #883733 #858833
monochromatic
#121F2F #223D5B #335A88 #4477B5 #6D97C8

Accessibility & contrast

On white

7.10
#335A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#335A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335A88
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A88#FFFFFF#000000##FFFFFF
##335A881.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475D8A
Deuteranopia (green-blind)
#3B5487
Tritanopia (blue-blind)
#00656B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #335a88;
/* rgb */ color: rgb(51, 90, 136);
/* oklch */ color: oklch(46.1% 0.088 253.7);
Tailwind
colors: {
  custom: {
    50: '#7388ab',
    500: '#335a88',
    950: '#000000',
  },
}
SCSS
$custom: #335a88;
$custom-light: #7388ab;
$custom-dark: #000000;
JSON
{
  "hex": "#335a88",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 136
  },
  "hsl": {
    "h": 212.471,
    "s": 45.455,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46086,
    "c": 0.08763,
    "h": 253.7
  },
  "luminance": 0.09794
}

Semantic roles & 50–950 ramp

primary
#335A88
secondary
#B08E67
accent
#9953D5
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B10
muted
#7B7C7F

Preview Lab

Preview with #335A88

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

Preview Lab → · Contrast checker → · Palette generator →

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