#335F8D#335F8D

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

Color values

HEX#335F8D
RGBrgb(51, 95, 141)
HSLhsl(211, 47%, 38%)
HSVhsv(211, 64%, 55%)
CMYKcmyk(63.8%, 32.6%, 0%, 44.7%)
CIE-LABlab(39.26, -0.09, -29.97)
CIE-LCHlch(39.26, 29.97, 269.83°)
OKLaboklab(47.57% -0.0289 -0.0847)
OKLCHoklch(47.57% 0.089 251.2)
XYZxyz(10.2634, 10.8103, 26.7399)
Luminance0.1081 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335F8D #8D6133
analogous
#338C8D #335F8D #34338D
triadic
#335F8D #8D335F #5F8D33
tetradic
#335F8D #8D338C #8D6133 #338D34
square
#335F8D #8D338C #8D6133 #338D34
split-complementary
#335F8D #8D3433 #8C8D33
monochromatic
#122233 #234160 #335F8D #437DBA #6F9CCB

Accessibility & contrast

On white

6.64
#335F8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#335F8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335F8D
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335F8D#FFFFFF#000000##FFFFFF
##335F8D1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B618F
Deuteranopia (green-blind)
#3F598C
Tritanopia (blue-blind)
#006A6F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #335f8d;
/* rgb */ color: rgb(51, 95, 141);
/* oklch */ color: oklch(47.6% 0.089 251.2);
Tailwind
colors: {
  custom: {
    50: '#748cae',
    500: '#335f8d',
    950: '#000000',
  },
}
SCSS
$custom: #335f8d;
$custom-light: #748cae;
$custom-dark: #000000;
JSON
{
  "hex": "#335f8d",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 141
  },
  "hsl": {
    "h": 210.667,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.47574,
    "c": 0.08946,
    "h": 251.2
  },
  "luminance": 0.10811
}

Semantic roles & 50–950 ramp

primary
#335F8D
secondary
#B38F69
accent
#9551D7
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#090C10
muted
#7B7D7F

Preview Lab

Preview with #335F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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