#335B7A#335B7A

#335B7A is a mid, moderate cyan. Relative luminance 0.096; OKLCH L 45.6% C 0.068 H 243.5°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#335B7A
RGBrgb(51, 91, 122)
HSLhsl(206, 41%, 34%)
HSVhsv(206, 58%, 48%)
CMYKcmyk(58.2%, 25.4%, 0%, 52.2%)
CIE-LABlab(37.10, -4.24, -21.77)
CIE-LCHlch(37.10, 22.18, 258.98°)
OKLaboklab(45.57% -0.0305 -0.061)
OKLCHoklch(45.57% 0.068 243.5)
XYZxyz(8.6179, 9.5904, 19.8056)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B7A #7A5233
analogous
#337A76 #335B7A #33387A
triadic
#335B7A #7A335B #5B7A33
tetradic
#335B7A #76337A #7A5233 #387A33
square
#335B7A #76337A #7A5233 #387A33
split-complementary
#335B7A #7A3338 #7A7633
monochromatic
#0F1B24 #213B4F #335B7A #457BA5 #6899C0

Accessibility & contrast

On white

7.20
#335B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#335B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335B7A
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B7A#FFFFFF#000000##FFFFFF
##335B7A1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E5B7B
Deuteranopia (green-blind)
#445479
Tritanopia (blue-blind)
#006366
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #335b7a;
/* rgb */ color: rgb(51, 91, 122);
/* oklch */ color: oklch(45.6% 0.068 243.5);
Tailwind
colors: {
  custom: {
    50: '#7189a0',
    500: '#335b7a',
    950: '#000000',
  },
}
SCSS
$custom: #335b7a;
$custom-light: #7189a0;
$custom-dark: #000000;
JSON
{
  "hex": "#335b7a",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 122
  },
  "hsl": {
    "h": 206.197,
    "s": 41.04,
    "l": 33.922
  },
  "oklch": {
    "l": 0.4557,
    "c": 0.06816,
    "h": 243.5
  },
  "luminance": 0.09591
}

Semantic roles & 50–950 ramp

primary
#335B7A
secondary
#A88061
accent
#8C57D1
background
#F7F8F9
surface
#EDF0F2
border
#C8CBCC
text
#080B0E
muted
#7B7C7E

Preview Lab

Preview with #335B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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