#335B8A#335B8A

#335B8A is a mid, moderate cyan. Relative luminance 0.100; OKLCH L 46.4% C 0.089 H 253.6°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#335B8A
RGBrgb(51, 91, 138)
HSLhsl(212, 46%, 37%)
HSVhsv(212, 63%, 54%)
CMYKcmyk(63%, 34.1%, 0%, 45.9%)
CIE-LABlab(37.88, 1.36, -30.33)
CIE-LCHlch(37.88, 30.36, 272.57°)
OKLaboklab(46.44% -0.0252 -0.0857)
OKLCHoklch(46.44% 0.089 253.6)
XYZxyz(9.6921, 10.0201, 25.4631)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B8A #8A6233
analogous
#33878A #335B8A #37338A
triadic
#335B8A #8A335B #5B8A33
tetradic
#335B8A #8A3387 #8A6233 #338A37
square
#335B8A #8A3387 #8A6233 #338A37
split-complementary
#335B8A #8A3733 #878A33
monochromatic
#122031 #223E5D #335B8A #4478B7 #6E98C9

Accessibility & contrast

On white

6.99
#335B8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#335B8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335B8A
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B8A#FFFFFF#000000##FFFFFF
##335B8A1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475E8C
Deuteranopia (green-blind)
#3B5589
Tritanopia (blue-blind)
#00666C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #335b8a;
/* rgb */ color: rgb(51, 91, 138);
/* oklch */ color: oklch(46.4% 0.089 253.6);
Tailwind
colors: {
  custom: {
    50: '#7389ac',
    500: '#335b8a',
    950: '#000000',
  },
}
SCSS
$custom: #335b8a;
$custom-light: #7389ac;
$custom-dark: #000000;
JSON
{
  "hex": "#335b8a",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 138
  },
  "hsl": {
    "h": 212.414,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.46441,
    "c": 0.08938,
    "h": 253.6
  },
  "luminance": 0.10021
}

Semantic roles & 50–950 ramp

primary
#335B8A
secondary
#B18F67
accent
#9952D6
background
#F7F8FA
surface
#EDEFF4
border
#C8CACE
text
#090B10
muted
#7B7C7F

Preview Lab

Preview with #335B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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