#335F99#335F99

#335F99 is a mid, moderate cyan. Relative luminance 0.112; OKLCH L 48.3% C 0.106 H 256.0°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#335F99
RGBrgb(51, 95, 153)
HSLhsl(214, 50%, 40%)
HSVhsv(214, 67%, 60%)
CMYKcmyk(66.7%, 37.9%, 0%, 40%)
CIE-LABlab(39.89, 4.25, -36.19)
CIE-LCHlch(39.89, 36.43, 276.69°)
OKLaboklab(48.28% -0.0255 -0.1028)
OKLCHoklch(48.28% 0.106 256)
XYZxyz(11.2051, 11.1870, 31.6996)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335F99 #996D33
analogous
#339299 #335F99 #3A3399
triadic
#335F99 #99335F #5F9933
tetradic
#335F99 #993392 #996D33 #33993A
square
#335F99 #993392 #996D33 #33993A
split-complementary
#335F99 #993A33 #929933
monochromatic
#14263D #24426B #335F99 #477CC2 #759DD1

Accessibility & contrast

On white

6.49
#335F99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#335F99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335F99
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335F99#FFFFFF#000000##FFFFFF
##335F991.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#45639B
Deuteranopia (green-blind)
#375A98
Tritanopia (blue-blind)
#006C74
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #335f99;
/* rgb */ color: rgb(51, 95, 153);
/* oklch */ color: oklch(48.3% 0.106 256.0);
Tailwind
colors: {
  custom: {
    50: '#768cb7',
    500: '#335f99',
    950: '#000000',
  },
}
SCSS
$custom: #335f99;
$custom-light: #768cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#335f99",
  "rgb": {
    "r": 51,
    "g": 95,
    "b": 153
  },
  "hsl": {
    "h": 214.118,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.48278,
    "c": 0.10593,
    "h": 256
  },
  "luminance": 0.11188
}

Semantic roles & 50–950 ramp

primary
#335F99
secondary
#B9996E
accent
#9D4EDA
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#090C11
muted
#7B7D80

Preview Lab

Preview with #335F99

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

Preview Lab → · Contrast checker → · Palette generator →

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