#335C8B#335C8B

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

Color values

HEX#335C8B
RGBrgb(51, 92, 139)
HSLhsl(212, 46%, 37%)
HSVhsv(212, 63%, 55%)
CMYKcmyk(63.3%, 33.8%, 0%, 45.5%)
CIE-LABlab(38.24, 1.08, -30.37)
CIE-LCHlch(38.24, 30.39, 272.05°)
OKLaboklab(46.74% -0.0261 -0.0859)
OKLCHoklch(46.74% 0.09 253.1)
XYZxyz(9.8509, 10.2213, 25.8749)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335C8B #8B6233
analogous
#33888B #335C8B #36338B
triadic
#335C8B #8B335C #5C8B33
tetradic
#335C8B #8B3388 #8B6233 #338B36
square
#335C8B #8B3388 #8B6233 #338B36
split-complementary
#335C8B #8B3633 #888B33
monochromatic
#122131 #233E5E #335C8B #437AB8 #6E99CA

Accessibility & contrast

On white

6.90
#335C8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #335C8B
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335C8B#FFFFFF#000000##FFFFFF
##335C8B1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#485F8D
Deuteranopia (green-blind)
#3C568A
Tritanopia (blue-blind)
#00676D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #335c8b;
/* rgb */ color: rgb(51, 92, 139);
/* oklch */ color: oklch(46.7% 0.090 253.1);
Tailwind
colors: {
  custom: {
    50: '#7389ad',
    500: '#335c8b',
    950: '#000000',
  },
}
SCSS
$custom: #335c8b;
$custom-light: #7389ad;
$custom-dark: #000000;
JSON
{
  "hex": "#335c8b",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 139
  },
  "hsl": {
    "h": 212.045,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.46739,
    "c": 0.08973,
    "h": 253.1
  },
  "luminance": 0.10222
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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