#335079#335079

#335079 is a dark, moderate blue. Relative luminance 0.078; OKLCH L 42.8% C 0.077 H 257.2°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#335079
RGBrgb(51, 80, 121)
HSLhsl(215, 41%, 34%)
HSVhsv(215, 58%, 47%)
CMYKcmyk(57.9%, 33.9%, 0%, 52.5%)
CIE-LABlab(33.61, 2.37, -26.60)
CIE-LCHlch(33.61, 26.71, 275.10°)
OKLaboklab(42.81% -0.0171 -0.075)
OKLCHoklch(42.81% 0.077 257.2)
XYZxyz(7.6839, 7.8210, 19.1901)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335079 #795C33
analogous
#337379 #335079 #393379
triadic
#335079 #793350 #507933
tetradic
#335079 #793373 #795C33 #337939
square
#335079 #793373 #795C33 #337939
split-complementary
#335079 #793933 #737933
monochromatic
#0F1723 #21344E #335079 #456CA4 #678CBF

Accessibility & contrast

On white

8.19
#335079 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#335079 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335079
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335079#FFFFFF#000000##FFFFFF
##3350791.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F537B
Deuteranopia (green-blind)
#374C78
Tritanopia (blue-blind)
#04595F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #335079;
/* rgb */ color: rgb(51, 80, 121);
/* oklch */ color: oklch(42.8% 0.077 257.2);
Tailwind
colors: {
  custom: {
    50: '#7080a0',
    500: '#335079',
    950: '#000000',
  },
}
SCSS
$custom: #335079;
$custom-light: #7080a0;
$custom-dark: #000000;
JSON
{
  "hex": "#335079",
  "rgb": {
    "r": 51,
    "g": 80,
    "b": 121
  },
  "hsl": {
    "h": 215.143,
    "s": 40.698,
    "l": 33.725
  },
  "oklch": {
    "l": 0.42813,
    "c": 0.07694,
    "h": 257.2
  },
  "luminance": 0.07822
}

Semantic roles & 50–950 ramp

primary
#335079
secondary
#A78A61
accent
#9E57D1
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#080A0E
muted
#7B7C7E

Preview Lab

Preview with #335079

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

Preview Lab → · Contrast checker → · Palette generator →

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