#335A7C#335A7C

#335A7C is a mid, moderate cyan. Relative luminance 0.095; OKLCH L 45.4% C 0.071 H 246.5°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#335A7C
RGBrgb(51, 90, 124)
HSLhsl(208, 42%, 34%)
HSVhsv(208, 59%, 49%)
CMYKcmyk(58.9%, 27.4%, 0%, 51.4%)
CIE-LABlab(36.88, -2.94, -23.35)
CIE-LCHlch(36.88, 23.53, 262.83°)
OKLaboklab(45.43% -0.0285 -0.0655)
OKLCHoklch(45.43% 0.071 246.5)
XYZxyz(8.6582, 9.4706, 20.4366)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A7C #7C5533
analogous
#337C7A #335A7C #33367C
triadic
#335A7C #7C335A #5A7C33
tetradic
#335A7C #7A337C #7C5533 #367C33
square
#335A7C #7A337C #7C5533 #367C33
split-complementary
#335A7C #7C3336 #7C7A33
monochromatic
#0F1B25 #213B51 #335A7C #4579A7 #6898C1

Accessibility & contrast

On white

7.26
#335A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#335A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335A7C
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A7C#FFFFFF#000000##FFFFFF
##335A7C1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C5B7E
Deuteranopia (green-blind)
#42547B
Tritanopia (blue-blind)
#006266
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #335a7c;
/* rgb */ color: rgb(51, 90, 124);
/* oklch */ color: oklch(45.4% 0.071 246.5);
Tailwind
colors: {
  custom: {
    50: '#7188a2',
    500: '#335a7c',
    950: '#000000',
  },
}
SCSS
$custom: #335a7c;
$custom-light: #7188a2;
$custom-dark: #000000;
JSON
{
  "hex": "#335a7c",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 124
  },
  "hsl": {
    "h": 207.945,
    "s": 41.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45425,
    "c": 0.07144,
    "h": 246.5
  },
  "luminance": 0.09471
}

Semantic roles & 50–950 ramp

primary
#335A7C
secondary
#A98362
accent
#9056D2
background
#F7F8F9
surface
#EDEFF2
border
#C8CACC
text
#080B0F
muted
#7B7C7E

Preview Lab

Preview with #335A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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