#335B79#335B79

#335B79 is a mid, moderate cyan. Relative luminance 0.096; OKLCH L 45.5% C 0.067 H 242.6°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#335B79
RGBrgb(51, 91, 121)
HSLhsl(206, 41%, 34%)
HSVhsv(206, 58%, 47%)
CMYKcmyk(57.9%, 24.8%, 0%, 52.5%)
CIE-LABlab(37.05, -4.58, -21.23)
CIE-LCHlch(37.05, 21.72, 257.82°)
OKLaboklab(45.52% -0.0308 -0.0594)
OKLCHoklch(45.52% 0.067 242.6)
XYZxyz(8.5563, 9.5657, 19.4809)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B79 #795133
analogous
#337974 #335B79 #333879
triadic
#335B79 #79335B #5B7933
tetradic
#335B79 #743379 #795133 #387933
square
#335B79 #743379 #795133 #387933
split-complementary
#335B79 #793338 #797433
monochromatic
#0F1A23 #213B4E #335B79 #457BA4 #6799BF

Accessibility & contrast

On white

7.21
#335B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #335B79
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B79#FFFFFF#000000##FFFFFF
##335B791.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #335b79;
/* rgb */ color: rgb(51, 91, 121);
/* oklch */ color: oklch(45.5% 0.067 242.6);
Tailwind
colors: {
  custom: {
    50: '#71899f',
    500: '#335b79',
    950: '#000000',
  },
}
SCSS
$custom: #335b79;
$custom-light: #71899f;
$custom-dark: #000000;
JSON
{
  "hex": "#335b79",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 121
  },
  "hsl": {
    "h": 205.714,
    "s": 40.698,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45519,
    "c": 0.06693,
    "h": 242.6
  },
  "luminance": 0.09566
}

Semantic roles & 50–950 ramp

primary
#335B79
secondary
#A77F61
accent
#8B57D1
background
#F7F8F9
surface
#EDF0F2
border
#C8CBCC
text
#080B0E
muted
#7B7C7E

Preview Lab

Preview with #335B79

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

Preview Lab → · Contrast checker → · Palette generator →

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