#335F8E#335F8E

#335F8E is a mid, moderate cyan. Relative luminance 0.108; OKLCH L 47.6% C 0.091 H 251.6°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#335F8E
RGBrgb(51, 95, 142)
HSLhsl(211, 47%, 38%)
HSVhsv(211, 64%, 56%)
CMYKcmyk(64.1%, 33.1%, 0%, 44.3%)
CIE-LABlab(39.31, 0.27, -30.50)
CIE-LCHlch(39.31, 30.50, 270.51°)
OKLaboklab(47.63% -0.0286 -0.0862)
OKLCHoklch(47.63% 0.091 251.6)
XYZxyz(10.3382, 10.8402, 27.1335)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335F8E #8E6233
analogous
#338C8E #335F8E #35338E
triadic
#335F8E #8E335F #5F8E33
tetradic
#335F8E #8E338C #8E6233 #338E35
square
#335F8E #8E338C #8E6233 #338E35
split-complementary
#335F8E #8E3533 #8C8E33
monochromatic
#132334 #234161 #335F8E #437DBB #709CCC

Accessibility & contrast

On white

6.63
#335F8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #335F8E
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335F8E#FFFFFF#000000##FFFFFF
##335F8E1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #335f8e;
/* rgb */ color: rgb(51, 95, 142);
/* oklch */ color: oklch(47.6% 0.091 251.6);
Tailwind
colors: {
  custom: {
    50: '#748caf',
    500: '#335f8e',
    950: '#000000',
  },
}
SCSS
$custom: #335f8e;
$custom-light: #748caf;
$custom-dark: #000000;
JSON
{
  "hex": "#335f8e",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 142
  },
  "hsl": {
    "h": 210.989,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4763,
    "c": 0.09081,
    "h": 251.6
  },
  "luminance": 0.10841
}

Semantic roles & 50–950 ramp

primary
#335F8E
secondary
#B49069
accent
#9651D7
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#090C10
muted
#7B7D7F

Preview Lab

Preview with #335F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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