#335E8F#335E8F

#335E8F is a mid, moderate cyan. Relative luminance 0.107; OKLCH L 47.4% C 0.093 H 253.0°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#335E8F
RGBrgb(51, 94, 143)
HSLhsl(212, 47%, 38%)
HSVhsv(212, 64%, 56%)
CMYKcmyk(64.3%, 34.3%, 0%, 43.9%)
CIE-LABlab(39.06, 1.26, -31.50)
CIE-LCHlch(39.06, 31.52, 272.28°)
OKLaboklab(47.45% -0.0272 -0.0891)
OKLCHoklch(47.45% 0.093 253)
XYZxyz(10.3241, 10.6914, 27.5008)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335E8F #8F6433
analogous
#338C8F #335E8F #36338F
triadic
#335E8F #8F335E #5E8F33
tetradic
#335E8F #8F338C #8F6433 #338F36
square
#335E8F #8F338C #8F6433 #338F36
split-complementary
#335E8F #8F3633 #8C8F33
monochromatic
#132335 #234062 #335E8F #437CBC #709BCC

Accessibility & contrast

On white

6.69
#335E8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#335E8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335E8F
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335E8F#FFFFFF#000000##FFFFFF
##335E8F1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#496191
Deuteranopia (green-blind)
#3C588E
Tritanopia (blue-blind)
#006970
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #335e8f;
/* rgb */ color: rgb(51, 94, 143);
/* oklch */ color: oklch(47.4% 0.093 253.0);
Tailwind
colors: {
  custom: {
    50: '#748bb0',
    500: '#335e8f',
    950: '#000000',
  },
}
SCSS
$custom: #335e8f;
$custom-light: #748bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#335e8f",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 143
  },
  "hsl": {
    "h": 211.957,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.47448,
    "c": 0.09318,
    "h": 253
  },
  "luminance": 0.10692
}

Semantic roles & 50–950 ramp

primary
#335E8F
secondary
#B4916A
accent
#9851D7
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#090B10
muted
#7B7C7F

Preview Lab

Preview with #335E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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