#335C8F#335C8F

#335C8F is a mid, moderate cyan. Relative luminance 0.103; OKLCH L 47.0% C 0.095 H 254.8°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#335C8F
RGBrgb(51, 92, 143)
HSLhsl(213, 47%, 38%)
HSVhsv(213, 64%, 56%)
CMYKcmyk(64.3%, 35.7%, 0%, 43.9%)
CIE-LABlab(38.45, 2.52, -32.46)
CIE-LCHlch(38.45, 32.56, 274.44°)
OKLaboklab(46.97% -0.0249 -0.0919)
OKLCHoklch(46.97% 0.095 254.8)
XYZxyz(10.1485, 10.3403, 27.4423)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335C8F #8F6633
analogous
#338A8F #335C8F #38338F
triadic
#335C8F #8F335C #5C8F33
tetradic
#335C8F #8F338A #8F6633 #338F38
square
#335C8F #8F338A #8F6633 #338F38
split-complementary
#335C8F #8F3833 #8A8F33
monochromatic
#132235 #233F62 #335C8F #4379BC #7099CC

Accessibility & contrast

On white

6.84
#335C8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#335C8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335C8F
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335C8F#FFFFFF#000000##FFFFFF
##335C8F1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#465F91
Deuteranopia (green-blind)
#3A578E
Tritanopia (blue-blind)
#00686F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #335c8f;
/* rgb */ color: rgb(51, 92, 143);
/* oklch */ color: oklch(47.0% 0.095 254.8);
Tailwind
colors: {
  custom: {
    50: '#7489b0',
    500: '#335c8f',
    950: '#000000',
  },
}
SCSS
$custom: #335c8f;
$custom-light: #7489b0;
$custom-dark: #000000;
JSON
{
  "hex": "#335c8f",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 143
  },
  "hsl": {
    "h": 213.261,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.46971,
    "c": 0.09527,
    "h": 254.8
  },
  "luminance": 0.10341
}

Semantic roles & 50–950 ramp

primary
#335C8F
secondary
#B4936A
accent
#9B51D7
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#090B10
muted
#7B7C7F

Preview Lab

Preview with #335C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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