#335F7E#335F7E

#335F7E is a mid, moderate cyan. Relative luminance 0.104; OKLCH L 46.8% C 0.070 H 241.2°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#335F7E
RGBrgb(51, 95, 126)
HSLhsl(205, 42%, 35%)
HSVhsv(205, 60%, 49%)
CMYKcmyk(59.5%, 24.6%, 0%, 50.6%)
CIE-LABlab(38.54, -5.33, -21.98)
CIE-LCHlch(38.54, 22.62, 256.37°)
OKLaboklab(46.77% -0.0339 -0.0616)
OKLCHoklch(46.77% 0.07 241.2)
XYZxyz(9.2220, 10.3938, 21.2548)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335F7E #7E5233
analogous
#337E78 #335F7E #333A7E
triadic
#335F7E #7E335F #5F7E33
tetradic
#335F7E #78337E #7E5233 #3A7E33
square
#335F7E #78337E #7E5233 #3A7E33
split-complementary
#335F7E #7E333A #7E7833
monochromatic
#101D27 #213E52 #335F7E #4580AA #699DC2

Accessibility & contrast

On white

6.82
#335F7E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#335F7E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335F7E
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335F7E#FFFFFF#000000##FFFFFF
##335F7E1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#515F7F
Deuteranopia (green-blind)
#47577D
Tritanopia (blue-blind)
#006769
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #335f7e;
/* rgb */ color: rgb(51, 95, 126);
/* oklch */ color: oklch(46.8% 0.070 241.2);
Tailwind
colors: {
  custom: {
    50: '#718ca3',
    500: '#335f7e',
    950: '#000000',
  },
}
SCSS
$custom: #335f7e;
$custom-light: #718ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#335f7e",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 126
  },
  "hsl": {
    "h": 204.8,
    "s": 42.373,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46771,
    "c": 0.07028,
    "h": 241.2
  },
  "luminance": 0.10395
}

Semantic roles & 50–950 ramp

primary
#335F7E
secondary
#AA8063
accent
#8956D2
background
#F7F8FA
surface
#EDF0F3
border
#C8CBCD
text
#080C0F
muted
#7B7D7F

Preview Lab

Preview with #335F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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