#335271#335271

#335271 is a dark, moderate cyan. Relative luminance 0.079; OKLCH L 42.9% C 0.064 H 249.5°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#335271
RGBrgb(51, 82, 113)
HSLhsl(210, 38%, 32%)
HSVhsv(210, 55%, 44%)
CMYKcmyk(54.9%, 27.4%, 0%, 55.7%)
CIE-LABlab(33.84, -1.68, -21.26)
CIE-LCHlch(33.84, 21.33, 265.49°)
OKLaboklab(42.86% -0.0222 -0.0595)
OKLCHoklch(42.86% 0.064 249.5)
XYZxyz(7.3621, 7.9301, 16.7623)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335271 #715233
analogous
#337171 #335271 #333371
triadic
#335271 #713352 #527133
tetradic
#335271 #713371 #715233 #337133
square
#335271 #713371 #715233 #337133
split-complementary
#335271 #713333 #717133
monochromatic
#0D151D #203347 #335271 #46719B #658FB9

Accessibility & contrast

On white

8.12
#335271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#335271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335271
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335271#FFFFFF#000000##FFFFFF
##3352711.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455372
Deuteranopia (green-blind)
#3D4D70
Tritanopia (blue-blind)
#11595D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #335271;
/* rgb */ color: rgb(51, 82, 113);
/* oklch */ color: oklch(42.9% 0.064 249.5);
Tailwind
colors: {
  custom: {
    50: '#6f829a',
    500: '#335271',
    950: '#000000',
  },
}
SCSS
$custom: #335271;
$custom-light: #6f829a;
$custom-dark: #000000;
JSON
{
  "hex": "#335271",
  "rgb": {
    "r": 51,
    "g": 82,
    "b": 113
  },
  "hsl": {
    "h": 210,
    "s": 37.805,
    "l": 32.157
  },
  "oklch": {
    "l": 0.42862,
    "c": 0.06357,
    "h": 249.5
  },
  "luminance": 0.07931
}

Semantic roles & 50–950 ramp

primary
#335271
secondary
#A2805E
accent
#945ACE
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#080A0E
muted
#7B7C7E

Preview Lab

Preview with #335271

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

Preview Lab → · Contrast checker → · Palette generator →

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