#335B7D#335B7D

#335B7D is a mid, moderate cyan. Relative luminance 0.097; OKLCH L 45.7% C 0.072 H 245.9°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#335B7D
RGBrgb(51, 91, 125)
HSLhsl(208, 42%, 35%)
HSVhsv(208, 59%, 49%)
CMYKcmyk(59.2%, 27.2%, 0%, 51%)
CIE-LABlab(37.24, -3.21, -23.40)
CIE-LCHlch(37.24, 23.62, 262.18°)
OKLaboklab(45.73% -0.0294 -0.0657)
OKLCHoklch(45.73% 0.072 245.9)
XYZxyz(8.8067, 9.6659, 20.7997)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B7D #7D5533
analogous
#337D7A #335B7D #33367D
triadic
#335B7D #7D335B #5B7D33
tetradic
#335B7D #7A337D #7D5533 #367D33
square
#335B7D #7A337D #7D5533 #367D33
split-complementary
#335B7D #7D3336 #7D7A33
monochromatic
#101C26 #213B52 #335B7D #457BA8 #6999C2

Accessibility & contrast

On white

7.16
#335B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#335B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335B7D
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B7D#FFFFFF#000000##FFFFFF
##335B7D1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C5C7F
Deuteranopia (green-blind)
#43547C
Tritanopia (blue-blind)
#006367
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #335b7d;
/* rgb */ color: rgb(51, 91, 125);
/* oklch */ color: oklch(45.7% 0.072 245.9);
Tailwind
colors: {
  custom: {
    50: '#7189a2',
    500: '#335b7d',
    950: '#000000',
  },
}
SCSS
$custom: #335b7d;
$custom-light: #7189a2;
$custom-dark: #000000;
JSON
{
  "hex": "#335b7d",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 125
  },
  "hsl": {
    "h": 207.568,
    "s": 42.045,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45725,
    "c": 0.07194,
    "h": 245.9
  },
  "luminance": 0.09667
}

Semantic roles & 50–950 ramp

primary
#335B7D
secondary
#AA8362
accent
#8F56D2
background
#F7F8FA
surface
#EDF0F3
border
#C8CBCD
text
#080B0F
muted
#7B7C7F

Preview Lab

Preview with #335B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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