#335178#335178

#335178 is a dark, moderate cyan. Relative luminance 0.079; OKLCH L 43.0% C 0.074 H 255.5°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#335178
RGBrgb(51, 81, 120)
HSLhsl(214, 40%, 34%)
HSVhsv(214, 58%, 47%)
CMYKcmyk(57.5%, 32.5%, 0%, 52.9%)
CIE-LABlab(33.87, 1.38, -25.58)
CIE-LCHlch(33.87, 25.61, 273.08°)
OKLaboklab(43% -0.0187 -0.072)
OKLCHoklch(43% 0.074 255.5)
XYZxyz(7.6967, 7.9441, 18.8934)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335178 #785A33
analogous
#337378 #335178 #373378
triadic
#335178 #783351 #517833
tetradic
#335178 #783373 #785A33 #337837
square
#335178 #783373 #785A33 #337837
split-complementary
#335178 #783733 #737833
monochromatic
#0E1722 #21344D #335178 #456EA3 #678DBE

Accessibility & contrast

On white

8.11
#335178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335178
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335178#FFFFFF#000000##FFFFFF
##3351781.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41537A
Deuteranopia (green-blind)
#384D77
Tritanopia (blue-blind)
#065A5F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #335178;
/* rgb */ color: rgb(51, 81, 120);
/* oklch */ color: oklch(43.0% 0.074 255.5);
Tailwind
colors: {
  custom: {
    50: '#70819f',
    500: '#335178',
    950: '#000000',
  },
}
SCSS
$custom: #335178;
$custom-light: #70819f;
$custom-dark: #000000;
JSON
{
  "hex": "#335178",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 120
  },
  "hsl": {
    "h": 213.913,
    "s": 40.351,
    "l": 33.529
  },
  "oklch": {
    "l": 0.42998,
    "c": 0.0744,
    "h": 255.5
  },
  "luminance": 0.07945
}

Semantic roles & 50–950 ramp

primary
#335178
secondary
#A68860
accent
#9C58D0
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#080A0E
muted
#7B7C7E

Preview Lab

Preview with #335178

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

Preview Lab → · Contrast checker → · Palette generator →

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