#335A7E#335A7E

#335A7E is a mid, moderate cyan. Relative luminance 0.095; OKLCH L 45.5% C 0.074 H 247.9°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#335A7E
RGBrgb(51, 90, 126)
HSLhsl(209, 42%, 35%)
HSVhsv(209, 60%, 49%)
CMYKcmyk(59.5%, 28.6%, 0%, 50.6%)
CIE-LABlab(36.97, -2.24, -24.43)
CIE-LCHlch(36.97, 24.53, 264.75°)
OKLaboklab(45.53% -0.0278 -0.0686)
OKLCHoklch(45.53% 0.074 247.9)
XYZxyz(8.7859, 9.5217, 21.1095)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A7E #7E5733
analogous
#337E7D #335A7E #33357E
triadic
#335A7E #7E335A #5A7E33
tetradic
#335A7E #7D337E #7E5733 #357E33
square
#335A7E #7D337E #7E5733 #357E33
split-complementary
#335A7E #7E3335 #7E7D33
monochromatic
#101C27 #213B52 #335A7E #4579AA #6997C2

Accessibility & contrast

On white

7.23
#335A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#335A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335A7E
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A7E#FFFFFF#000000##FFFFFF
##335A7E1.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B5B80
Deuteranopia (green-blind)
#41547D
Tritanopia (blue-blind)
#006267
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #335a7e;
/* rgb */ color: rgb(51, 90, 126);
/* oklch */ color: oklch(45.5% 0.074 247.9);
Tailwind
colors: {
  custom: {
    50: '#7188a3',
    500: '#335a7e',
    950: '#000000',
  },
}
SCSS
$custom: #335a7e;
$custom-light: #7188a3;
$custom-dark: #000000;
JSON
{
  "hex": "#335a7e",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 126
  },
  "hsl": {
    "h": 208.8,
    "s": 42.373,
    "l": 34.706
  },
  "oklch": {
    "l": 0.45531,
    "c": 0.07406,
    "h": 247.9
  },
  "luminance": 0.09522
}

Semantic roles & 50–950 ramp

primary
#335A7E
secondary
#AA8563
accent
#9156D2
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#080B0F
muted
#7B7C7F

Preview Lab

Preview with #335A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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