#335F8F#335F8F

#335F8F is a mid, moderate cyan. Relative luminance 0.109; OKLCH L 47.7% C 0.092 H 252.1°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#335F8F
RGBrgb(51, 95, 143)
HSLhsl(211, 47%, 38%)
HSVhsv(211, 64%, 56%)
CMYKcmyk(64.3%, 33.6%, 0%, 43.9%)
CIE-LABlab(39.36, 0.63, -31.02)
CIE-LCHlch(39.36, 31.02, 271.16°)
OKLaboklab(47.69% -0.0283 -0.0877)
OKLCHoklch(47.69% 0.092 252.1)
XYZxyz(10.4136, 10.8704, 27.5307)
Luminance0.1087 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335F8F #8F6333
analogous
#338D8F #335F8F #35338F
triadic
#335F8F #8F335F #5F8F33
tetradic
#335F8F #8F338D #8F6333 #338F35
square
#335F8F #8F338D #8F6333 #338F35
split-complementary
#335F8F #8F3533 #8D8F33
monochromatic
#132335 #234162 #335F8F #437DBC #709CCC

Accessibility & contrast

On white

6.62
#335F8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#335F8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335F8F
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335F8F#FFFFFF#000000##FFFFFF
##335F8F1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A6291
Deuteranopia (green-blind)
#3E598E
Tritanopia (blue-blind)
#006A70
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #335f8f;
/* rgb */ color: rgb(51, 95, 143);
/* oklch */ color: oklch(47.7% 0.092 252.1);
Tailwind
colors: {
  custom: {
    50: '#748cb0',
    500: '#335f8f',
    950: '#000000',
  },
}
SCSS
$custom: #335f8f;
$custom-light: #748cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#335f8f",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 143
  },
  "hsl": {
    "h": 211.304,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.47687,
    "c": 0.09217,
    "h": 252.1
  },
  "luminance": 0.10871
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #335F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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