#335168#335168

#335168 is a dark, muted cyan. Relative luminance 0.076; OKLCH L 42.2% C 0.053 H 242.5°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#335168
RGBrgb(51, 81, 104)
HSLhsl(206, 34%, 30%)
HSVhsv(206, 51%, 41%)
CMYKcmyk(51%, 22.1%, 0%, 59.2%)
CIE-LABlab(33.11, -4.05, -16.75)
CIE-LCHlch(33.11, 17.24, 256.40°)
OKLaboklab(42.15% -0.0242 -0.0466)
OKLCHoklch(42.15% 0.053 242.5)
XYZxyz(6.8055, 7.5876, 14.2000)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335168 #684A33
analogous
#336865 #335168 #333668
triadic
#335168 #683351 #516833
tetradic
#335168 #653368 #684A33 #366833
square
#335168 #653368 #684A33 #366833
split-complementary
#335168 #683336 #686533
monochromatic
#0B1116 #1F313F #335168 #477191 #6390B2

Accessibility & contrast

On white

8.34
#335168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#335168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335168
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335168#FFFFFF#000000##FFFFFF
##3351681.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475169
Deuteranopia (green-blind)
#404B68
Tritanopia (blue-blind)
#1A5759
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #335168;
/* rgb */ color: rgb(51, 81, 104);
/* oklch */ color: oklch(42.2% 0.053 242.5);
Tailwind
colors: {
  custom: {
    50: '#6e8193',
    500: '#335168',
    950: '#000000',
  },
}
SCSS
$custom: #335168;
$custom-light: #6e8193;
$custom-dark: #000000;
JSON
{
  "hex": "#335168",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 104
  },
  "hsl": {
    "h": 206.038,
    "s": 34.194,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42153,
    "c": 0.05254,
    "h": 242.5
  },
  "luminance": 0.07588
}

Semantic roles & 50–950 ramp

primary
#335168
secondary
#99775E
accent
#8D5ECA
background
#F6F7F9
surface
#ECEEF1
border
#C7C9CB
text
#070A0D
muted
#7A7C7E

Preview Lab

Preview with #335168

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

Preview Lab → · Contrast checker → · Palette generator →

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