#335C98#335C98

#335C98 is a mid, moderate blue. Relative luminance 0.106; OKLCH L 47.5% C 0.108 H 257.9°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#335C98
RGBrgb(51, 92, 152)
HSLhsl(216, 50%, 40%)
HSVhsv(216, 66%, 60%)
CMYKcmyk(66.4%, 39.5%, 0%, 40.4%)
CIE-LABlab(38.94, 5.80, -37.10)
CIE-LCHlch(38.94, 37.55, 278.88°)
OKLaboklab(47.52% -0.0226 -0.1055)
OKLCHoklch(47.52% 0.108 257.9)
XYZxyz(10.8579, 10.6240, 31.1781)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335C98 #986F33
analogous
#338E98 #335C98 #3D3398
triadic
#335C98 #98335C #5C9833
tetradic
#335C98 #98338E #986F33 #33983D
square
#335C98 #98338E #986F33 #33983D
split-complementary
#335C98 #983D33 #8E9833
monochromatic
#14253C #24406A #335C98 #4779C1 #759AD1

Accessibility & contrast

On white

6.72
#335C98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #335C98
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335C98#FFFFFF#000000##FFFFFF
##335C981.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41619A
Deuteranopia (green-blind)
#335797
Tritanopia (blue-blind)
#006A72
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #335c98;
/* rgb */ color: rgb(51, 92, 152);
/* oklch */ color: oklch(47.5% 0.108 257.9);
Tailwind
colors: {
  custom: {
    50: '#7589b6',
    500: '#335c98',
    950: '#000000',
  },
}
SCSS
$custom: #335c98;
$custom-light: #7589b6;
$custom-dark: #000000;
JSON
{
  "hex": "#335c98",
  "rgb": {
    "r": 51,
    "g": 92,
    "b": 152
  },
  "hsl": {
    "h": 215.644,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.47517,
    "c": 0.10791,
    "h": 257.9
  },
  "luminance": 0.10625
}

Semantic roles & 50–950 ramp

primary
#335C98
secondary
#B99A6E
accent
#A14FD9
background
#F7F8FB
surface
#EDF0F6
border
#C8CBD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335C98

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

Preview Lab → · Contrast checker → · Palette generator →

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