#335979#335979

#335979 is a mid, moderate cyan. Relative luminance 0.092; OKLCH L 45.0% C 0.068 H 245.5°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#335979
RGBrgb(51, 89, 121)
HSLhsl(207, 41%, 34%)
HSVhsv(207, 58%, 47%)
CMYKcmyk(57.9%, 26.4%, 0%, 52.5%)
CIE-LABlab(36.42, -3.34, -22.21)
CIE-LCHlch(36.42, 22.46, 261.44°)
OKLaboklab(45.02% -0.0283 -0.0622)
OKLCHoklch(45.02% 0.068 245.5)
XYZxyz(8.3876, 9.2283, 19.4247)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335979 #795333
analogous
#337976 #335979 #333679
triadic
#335979 #793359 #597933
tetradic
#335979 #763379 #795333 #367933
square
#335979 #763379 #795333 #367933
split-complementary
#335979 #793336 #797633
monochromatic
#0F1A23 #21394E #335979 #4579A4 #6797BF

Accessibility & contrast

On white

7.38
#335979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#335979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335979
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335979#FFFFFF#000000##FFFFFF
##3359791.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #335979;
/* rgb */ color: rgb(51, 89, 121);
/* oklch */ color: oklch(45.0% 0.068 245.5);
Tailwind
colors: {
  custom: {
    50: '#7087a0',
    500: '#335979',
    950: '#000000',
  },
}
SCSS
$custom: #335979;
$custom-light: #7087a0;
$custom-dark: #000000;
JSON
{
  "hex": "#335979",
  "rgb": {
    "r": 51,
    "g": 89,
    "b": 121
  },
  "hsl": {
    "h": 207.429,
    "s": 40.698,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45021,
    "c": 0.06838,
    "h": 245.5
  },
  "luminance": 0.09229
}

Semantic roles & 50–950 ramp

primary
#335979
secondary
#A78161
accent
#8F57D1
background
#F7F8F9
surface
#EDEFF2
border
#C8CACC
text
#080B0E
muted
#7B7C7E

Preview Lab

Preview with #335979

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

Preview Lab → · Contrast checker → · Palette generator →

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