#335E8D#335E8D

#335E8D is a mid, moderate cyan. Relative luminance 0.106; OKLCH L 47.3% C 0.090 H 252.1°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#335E8D
RGBrgb(51, 94, 141)
HSLhsl(211, 47%, 38%)
HSVhsv(211, 64%, 55%)
CMYKcmyk(63.8%, 33.3%, 0%, 44.7%)
CIE-LABlab(38.95, 0.54, -30.45)
CIE-LCHlch(38.95, 30.46, 271.01°)
OKLaboklab(47.33% -0.0278 -0.0861)
OKLCHoklch(47.33% 0.09 252.1)
XYZxyz(10.1739, 10.6313, 26.7100)
Luminance0.1063 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335E8D #8D6233
analogous
#338B8D #335E8D #35338D
triadic
#335E8D #8D335E #5E8D33
tetradic
#335E8D #8D338B #8D6233 #338D35
square
#335E8D #8D338B #8D6233 #338D35
split-complementary
#335E8D #8D3533 #8B8D33
monochromatic
#122233 #234060 #335E8D #437CBA #6F9BCB

Accessibility & contrast

On white

6.72
#335E8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#335E8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335E8D
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335E8D#FFFFFF#000000##FFFFFF
##335E8D1.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A608F
Deuteranopia (green-blind)
#3E588C
Tritanopia (blue-blind)
#00696F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #335e8d;
/* rgb */ color: rgb(51, 94, 141);
/* oklch */ color: oklch(47.3% 0.090 252.1);
Tailwind
colors: {
  custom: {
    50: '#748bae',
    500: '#335e8d',
    950: '#000000',
  },
}
SCSS
$custom: #335e8d;
$custom-light: #748bae;
$custom-dark: #000000;
JSON
{
  "hex": "#335e8d",
  "rgb": {
    "r": 51,
    "g": 94,
    "b": 141
  },
  "hsl": {
    "h": 211.333,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.47333,
    "c": 0.09045,
    "h": 252.1
  },
  "luminance": 0.10632
}

Semantic roles & 50–950 ramp

primary
#335E8D
secondary
#B39069
accent
#9751D7
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#090C10
muted
#7B7D7F

Preview Lab

Preview with #335E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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