#335C8E#335C8E

#335C8E is a mid, moderate cyan. Relative luminance 0.103; OKLCH L 46.9% C 0.094 H 254.4°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#335C8E
RGBrgb(51, 92, 142)
HSLhsl(213, 47%, 38%)
HSVhsv(213, 64%, 56%)
CMYKcmyk(64.1%, 35.2%, 0%, 44.3%)
CIE-LABlab(38.39, 2.16, -31.94)
CIE-LCHlch(38.39, 32.01, 273.87°)
OKLaboklab(46.91% -0.0252 -0.0904)
OKLCHoklch(46.91% 0.094 254.4)
XYZxyz(10.0731, 10.3101, 27.0452)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335C8E #8E6533
analogous
#33898E #335C8E #37338E
triadic
#335C8E #8E335C #5C8E33
tetradic
#335C8E #8E3389 #8E6533 #338E37
square
#335C8E #8E3389 #8E6533 #338E37
split-complementary
#335C8E #8E3733 #898E33
monochromatic
#132234 #233F61 #335C8E #4379BB #7099CC

Accessibility & contrast

On white

6.86
#335C8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#335C8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335C8E
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335C8E#FFFFFF#000000##FFFFFF
##335C8E1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475F90
Deuteranopia (green-blind)
#3A568D
Tritanopia (blue-blind)
#00676E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #335c8e;
/* rgb */ color: rgb(51, 92, 142);
/* oklch */ color: oklch(46.9% 0.094 254.4);
Tailwind
colors: {
  custom: {
    50: '#7489af',
    500: '#335c8e',
    950: '#000000',
  },
}
SCSS
$custom: #335c8e;
$custom-light: #7489af;
$custom-dark: #000000;
JSON
{
  "hex": "#335c8e",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 142
  },
  "hsl": {
    "h": 212.967,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.46913,
    "c": 0.09388,
    "h": 254.4
  },
  "luminance": 0.10311
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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