#335C99#335C99

#335C99 is a mid, moderate blue. Relative luminance 0.107; OKLCH L 47.6% C 0.109 H 258.2°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#335C99
RGBrgb(51, 92, 153)
HSLhsl(216, 50%, 40%)
HSVhsv(216, 67%, 60%)
CMYKcmyk(66.7%, 39.9%, 0%, 40%)
CIE-LABlab(39.00, 6.17, -37.61)
CIE-LCHlch(39.00, 38.11, 279.31°)
OKLaboklab(47.58% -0.0224 -0.107)
OKLCHoklch(47.58% 0.109 258.2)
XYZxyz(10.9401, 10.6569, 31.6113)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335C99 #997033
analogous
#338F99 #335C99 #3D3399
triadic
#335C99 #99335C #5C9933
tetradic
#335C99 #99338F #997033 #33993D
square
#335C99 #99338F #997033 #33993D
split-complementary
#335C99 #993D33 #8F9933
monochromatic
#14253D #24406B #335C99 #4779C2 #759AD1

Accessibility & contrast

On white

6.71
#335C99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #335C99
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335C99#FFFFFF#000000##FFFFFF
##335C991.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41619B
Deuteranopia (green-blind)
#325798
Tritanopia (blue-blind)
#006A73
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #335c99;
/* rgb */ color: rgb(51, 92, 153);
/* oklch */ color: oklch(47.6% 0.109 258.2);
Tailwind
colors: {
  custom: {
    50: '#7689b7',
    500: '#335c99',
    950: '#000000',
  },
}
SCSS
$custom: #335c99;
$custom-light: #7689b7;
$custom-dark: #000000;
JSON
{
  "hex": "#335c99",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 153
  },
  "hsl": {
    "h": 215.882,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.4758,
    "c": 0.10933,
    "h": 258.2
  },
  "luminance": 0.10658
}

Semantic roles & 50–950 ramp

primary
#335C99
secondary
#B99B6E
accent
#A24EDA
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335C99

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

Preview Lab → · Contrast checker → · Palette generator →

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