#335A78#335A78

#335A78 is a mid, moderate cyan. Relative luminance 0.094; OKLCH L 45.2% C 0.066 H 243.2°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#335A78
RGBrgb(51, 90, 120)
HSLhsl(206, 40%, 34%)
HSVhsv(206, 58%, 47%)
CMYKcmyk(57.5%, 25%, 0%, 52.9%)
CIE-LABlab(36.69, -4.31, -21.17)
CIE-LCHlch(36.69, 21.61, 258.51°)
OKLaboklab(45.22% -0.0299 -0.0592)
OKLCHoklch(45.22% 0.066 243.2)
XYZxyz(8.4103, 9.3715, 19.1313)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A78 #785133
analogous
#337873 #335A78 #333778
triadic
#335A78 #78335A #5A7833
tetradic
#335A78 #733378 #785133 #377833
square
#335A78 #733378 #785133 #377833
split-complementary
#335A78 #783337 #787333
monochromatic
#0E1A22 #213A4D #335A78 #457AA3 #6798BE

Accessibility & contrast

On white

7.31
#335A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#335A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335A78
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A78#FFFFFF#000000##FFFFFF
##335A781.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D5A79
Deuteranopia (green-blind)
#445377
Tritanopia (blue-blind)
#006164
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #335a78;
/* rgb */ color: rgb(51, 90, 120);
/* oklch */ color: oklch(45.2% 0.066 243.2);
Tailwind
colors: {
  custom: {
    50: '#70889f',
    500: '#335a78',
    950: '#000000',
  },
}
SCSS
$custom: #335a78;
$custom-light: #70889f;
$custom-dark: #000000;
JSON
{
  "hex": "#335a78",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 120
  },
  "hsl": {
    "h": 206.087,
    "s": 40.351,
    "l": 33.529
  },
  "oklch": {
    "l": 0.45218,
    "c": 0.06638,
    "h": 243.2
  },
  "luminance": 0.09372
}

Semantic roles & 50–950 ramp

primary
#335A78
secondary
#A67F60
accent
#8C58D0
background
#F7F8F9
surface
#EDEFF2
border
#C8CACC
text
#080B0E
muted
#7B7C7E

Preview Lab

Preview with #335A78

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

Preview Lab → · Contrast checker → · Palette generator →

#335A78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva