#335378#335378

#335378 is a dark, moderate cyan. Relative luminance 0.082; OKLCH L 43.5% C 0.072 H 253.0°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#335378
RGBrgb(51, 83, 120)
HSLhsl(212, 40%, 34%)
HSVhsv(212, 58%, 47%)
CMYKcmyk(57.5%, 30.8%, 0%, 52.9%)
CIE-LABlab(34.49, 0.09, -24.60)
CIE-LCHlch(34.49, 24.60, 270.22°)
OKLaboklab(43.49% -0.0212 -0.0692)
OKLCHoklch(43.49% 0.072 253)
XYZxyz(7.8475, 8.2457, 18.9437)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335378 #785833
analogous
#337578 #335378 #353378
triadic
#335378 #783353 #537833
tetradic
#335378 #783375 #785833 #337835
square
#335378 #783375 #785833 #337835
split-complementary
#335378 #783533 #757833
monochromatic
#0E1822 #21354D #335378 #4571A3 #6790BE

Accessibility & contrast

On white

7.93
#335378 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#335378 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335378
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335378#FFFFFF#000000##FFFFFF
##3353781.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#44557A
Deuteranopia (green-blind)
#3B4E77
Tritanopia (blue-blind)
#045B60
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #335378;
/* rgb */ color: rgb(51, 83, 120);
/* oklch */ color: oklch(43.5% 0.072 253.0);
Tailwind
colors: {
  custom: {
    50: '#70839f',
    500: '#335378',
    950: '#000000',
  },
}
SCSS
$custom: #335378;
$custom-light: #70839f;
$custom-dark: #000000;
JSON
{
  "hex": "#335378",
  "rgb": {
    "r": 51,
    "g": 83,
    "b": 120
  },
  "hsl": {
    "h": 212.174,
    "s": 40.351,
    "l": 33.529
  },
  "oklch": {
    "l": 0.43486,
    "c": 0.07235,
    "h": 253
  },
  "luminance": 0.08246
}

Semantic roles & 50–950 ramp

primary
#335378
secondary
#A68660
accent
#9858D0
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#080A0E
muted
#7B7C7E

Preview Lab

Preview with #335378

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

Preview Lab → · Contrast checker → · Palette generator →

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