#335174#335174

#335174 is a dark, moderate cyan. Relative luminance 0.079; OKLCH L 42.8% C 0.069 H 253.1°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#335174
RGBrgb(51, 81, 116)
HSLhsl(212, 39%, 33%)
HSVhsv(212, 56%, 45%)
CMYKcmyk(56%, 30.2%, 0%, 54.5%)
CIE-LABlab(33.67, -0.01, -23.40)
CIE-LCHlch(33.67, 23.40, 269.97°)
OKLaboklab(42.78% -0.0199 -0.0657)
OKLCHoklch(42.78% 0.069 253.1)
XYZxyz(7.4590, 7.8490, 17.6416)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335174 #745633
analogous
#337174 #335174 #363374
triadic
#335174 #743351 #517433
tetradic
#335174 #743371 #745633 #337436
square
#335174 #743371 #745633 #337436
split-complementary
#335174 #743633 #717433
monochromatic
#0E161F #203349 #335174 #466F9F #668DBC

Accessibility & contrast

On white

8.17
#335174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#335174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335174
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335174#FFFFFF#000000##FFFFFF
##3351741.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435376
Deuteranopia (green-blind)
#3B4C73
Tritanopia (blue-blind)
#0D595D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #335174;
/* rgb */ color: rgb(51, 81, 116);
/* oklch */ color: oklch(42.8% 0.069 253.1);
Tailwind
colors: {
  custom: {
    50: '#70819c',
    500: '#335174',
    950: '#000000',
  },
}
SCSS
$custom: #335174;
$custom-light: #70819c;
$custom-dark: #000000;
JSON
{
  "hex": "#335174",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 116
  },
  "hsl": {
    "h": 212.308,
    "s": 38.922,
    "l": 32.745
  },
  "oklch": {
    "l": 0.42776,
    "c": 0.06868,
    "h": 253.1
  },
  "luminance": 0.0785
}

Semantic roles & 50–950 ramp

primary
#335174
secondary
#A4845F
accent
#9859CF
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#080A0E
muted
#7B7C7E

Preview Lab

Preview with #335174

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

Preview Lab → · Contrast checker → · Palette generator →

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