#335B88#335B88

#335B88 is a mid, moderate cyan. Relative luminance 0.100; OKLCH L 46.3% C 0.087 H 252.7°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#335B88
RGBrgb(51, 91, 136)
HSLhsl(212, 45%, 37%)
HSVhsv(212, 63%, 53%)
CMYKcmyk(62.5%, 33.1%, 0%, 46.7%)
CIE-LABlab(37.78, 0.65, -29.27)
CIE-LCHlch(37.78, 29.28, 271.27°)
OKLaboklab(46.33% -0.0258 -0.0827)
OKLCHoklch(46.33% 0.087 252.7)
XYZxyz(9.5487, 9.9627, 24.7076)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B88 #886033
analogous
#338688 #335B88 #363388
triadic
#335B88 #88335B #5B8833
tetradic
#335B88 #883386 #886033 #338836
square
#335B88 #883386 #886033 #338836
split-complementary
#335B88 #883633 #868833
monochromatic
#121F2F #223D5B #335B88 #4479B5 #6D98C8

Accessibility & contrast

On white

7.02
#335B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335B88
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B88#FFFFFF#000000##FFFFFF
##335B881.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #335b88;
/* rgb */ color: rgb(51, 91, 136);
/* oklch */ color: oklch(46.3% 0.087 252.7);
Tailwind
colors: {
  custom: {
    50: '#7389ab',
    500: '#335b88',
    950: '#000000',
  },
}
SCSS
$custom: #335b88;
$custom-light: #7389ab;
$custom-dark: #000000;
JSON
{
  "hex": "#335b88",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 136
  },
  "hsl": {
    "h": 211.765,
    "s": 45.455,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46327,
    "c": 0.08662,
    "h": 252.7
  },
  "luminance": 0.09964
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335B88

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

Preview Lab → · Contrast checker → · Palette generator →

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