#335071#335071

#335071 is a dark, moderate cyan. Relative luminance 0.076; OKLCH L 42.4% C 0.065 H 252.5°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#335071
RGBrgb(51, 80, 113)
HSLhsl(212, 38%, 32%)
HSVhsv(212, 55%, 44%)
CMYKcmyk(54.9%, 29.2%, 0%, 55.7%)
CIE-LABlab(33.21, -0.40, -22.25)
CIE-LCHlch(33.21, 22.25, 268.96°)
OKLaboklab(42.37% -0.0196 -0.0624)
OKLCHoklch(42.37% 0.065 252.5)
XYZxyz(7.2135, 7.6328, 16.7127)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335071 #715433
analogous
#336F71 #335071 #353371
triadic
#335071 #713350 #507133
tetradic
#335071 #71336F #715433 #337135
square
#335071 #71336F #715433 #337135
split-complementary
#335071 #713533 #6F7133
monochromatic
#0D141D #203247 #335071 #466E9B #658CB9

Accessibility & contrast

On white

8.31
#335071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#335071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335071
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335071#FFFFFF#000000##FFFFFF
##3350711.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435172
Deuteranopia (green-blind)
#3B4B70
Tritanopia (blue-blind)
#12585B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #335071;
/* rgb */ color: rgb(51, 80, 113);
/* oklch */ color: oklch(42.4% 0.065 252.5);
Tailwind
colors: {
  custom: {
    50: '#6f809a',
    500: '#335071',
    950: '#000000',
  },
}
SCSS
$custom: #335071;
$custom-light: #6f809a;
$custom-dark: #000000;
JSON
{
  "hex": "#335071",
  "rgb": {
    "r": 51,
    "g": 80,
    "b": 113
  },
  "hsl": {
    "h": 211.935,
    "s": 37.805,
    "l": 32.157
  },
  "oklch": {
    "l": 0.42367,
    "c": 0.06541,
    "h": 252.5
  },
  "luminance": 0.07633
}

Semantic roles & 50–950 ramp

primary
#335071
secondary
#A2825E
accent
#985ACE
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#080A0E
muted
#7B7C7E

Preview Lab

Preview with #335071

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

Preview Lab → · Contrast checker → · Palette generator →

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