#335C8A#335C8A

#335C8A is a mid, moderate cyan. Relative luminance 0.102; OKLCH L 46.7% C 0.088 H 252.6°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#335C8A
RGBrgb(51, 92, 138)
HSLhsl(212, 46%, 37%)
HSVhsv(212, 63%, 54%)
CMYKcmyk(63%, 33.3%, 0%, 45.9%)
CIE-LABlab(38.19, 0.73, -29.84)
CIE-LCHlch(38.19, 29.85, 271.40°)
OKLaboklab(46.68% -0.0264 -0.0843)
OKLCHoklch(46.68% 0.088 252.6)
XYZxyz(9.7782, 10.1922, 25.4918)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335C8A #8A6133
analogous
#33888A #335C8A #35338A
triadic
#335C8A #8A335C #5C8A33
tetradic
#335C8A #8A3388 #8A6133 #338A35
square
#335C8A #8A3388 #8A6133 #338A35
split-complementary
#335C8A #8A3533 #888A33
monochromatic
#122031 #223E5D #335C8A #447AB7 #6E99C9

Accessibility & contrast

On white

6.91
#335C8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#335C8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335C8A
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335C8A#FFFFFF#000000##FFFFFF
##335C8A1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#485E8C
Deuteranopia (green-blind)
#3D5689
Tritanopia (blue-blind)
#00676C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #335c8a;
/* rgb */ color: rgb(51, 92, 138);
/* oklch */ color: oklch(46.7% 0.088 252.6);
Tailwind
colors: {
  custom: {
    50: '#7389ac',
    500: '#335c8a',
    950: '#000000',
  },
}
SCSS
$custom: #335c8a;
$custom-light: #7389ac;
$custom-dark: #000000;
JSON
{
  "hex": "#335c8a",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 138
  },
  "hsl": {
    "h": 211.724,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.46681,
    "c": 0.08836,
    "h": 252.6
  },
  "luminance": 0.10193
}

Semantic roles & 50–950 ramp

primary
#335C8A
secondary
#B18F67
accent
#9852D6
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#090B10
muted
#7B7C7F

Preview Lab

Preview with #335C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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