#335B78#335B78

#335B78 is a mid, moderate cyan. Relative luminance 0.095; OKLCH L 45.5% C 0.066 H 241.7°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#335B78
RGBrgb(51, 91, 120)
HSLhsl(205, 40%, 34%)
HSVhsv(205, 58%, 47%)
CMYKcmyk(57.5%, 24.2%, 0%, 52.9%)
CIE-LABlab(37.01, -4.92, -20.68)
CIE-LCHlch(37.01, 21.26, 256.62°)
OKLaboklab(45.47% -0.0312 -0.0578)
OKLCHoklch(45.47% 0.066 241.7)
XYZxyz(8.4953, 9.5413, 19.1596)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B78 #785033
analogous
#337872 #335B78 #333878
triadic
#335B78 #78335B #5B7833
tetradic
#335B78 #723378 #785033 #387833
square
#335B78 #723378 #785033 #387833
split-complementary
#335B78 #783338 #787233
monochromatic
#0E1A22 #213A4D #335B78 #457CA3 #679ABE

Accessibility & contrast

On white

7.22
#335B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#335B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335B78
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B78#FFFFFF#000000##FFFFFF
##335B781.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E5B79
Deuteranopia (green-blind)
#455477
Tritanopia (blue-blind)
#006265
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #335b78;
/* rgb */ color: rgb(51, 91, 120);
/* oklch */ color: oklch(45.5% 0.066 241.7);
Tailwind
colors: {
  custom: {
    50: '#70899f',
    500: '#335b78',
    950: '#000000',
  },
}
SCSS
$custom: #335b78;
$custom-light: #70899f;
$custom-dark: #000000;
JSON
{
  "hex": "#335b78",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 120
  },
  "hsl": {
    "h": 205.217,
    "s": 40.351,
    "l": 33.529
  },
  "oklch": {
    "l": 0.45468,
    "c": 0.06571,
    "h": 241.7
  },
  "luminance": 0.09542
}

Semantic roles & 50–950 ramp

primary
#335B78
secondary
#A67E60
accent
#8A58D0
background
#F7F8F9
surface
#EDF0F2
border
#C8CBCC
text
#080B0E
muted
#7B7C7E

Preview Lab

Preview with #335B78

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

Preview Lab → · Contrast checker → · Palette generator →

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