#335B96#335B96

#335B96 is a mid, moderate blue. Relative luminance 0.104; OKLCH L 47.2% C 0.106 H 258.0°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#335B96
RGBrgb(51, 91, 150)
HSLhsl(216, 49%, 39%)
HSVhsv(216, 66%, 59%)
CMYKcmyk(66%, 39.3%, 0%, 41.2%)
CIE-LABlab(38.53, 5.71, -36.55)
CIE-LCHlch(38.53, 36.99, 278.88°)
OKLaboklab(47.16% -0.022 -0.1039)
OKLCHoklch(47.16% 0.106 258)
XYZxyz(10.6094, 10.3870, 30.2940)
Luminance0.1039 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335B96 #966E33
analogous
#338D96 #335B96 #3D3396
triadic
#335B96 #96335B #5B9633
tetradic
#335B96 #96338D #966E33 #33963D
square
#335B96 #96338D #966E33 #33963D
split-complementary
#335B96 #963D33 #8D9633
monochromatic
#14243B #233F68 #335B96 #4677C0 #7499D0

Accessibility & contrast

On white

6.82
#335B96 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#335B96 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335B96
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335B96#FFFFFF#000000##FFFFFF
##335B961.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#416098
Deuteranopia (green-blind)
#335695
Tritanopia (blue-blind)
#006871
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #335b96;
/* rgb */ color: rgb(51, 91, 150);
/* oklch */ color: oklch(47.2% 0.106 258.0);
Tailwind
colors: {
  custom: {
    50: '#7589b5',
    500: '#335b96',
    950: '#000000',
  },
}
SCSS
$custom: #335b96;
$custom-light: #7589b5;
$custom-dark: #000000;
JSON
{
  "hex": "#335b96",
  "rgb": {
    "r": 51,
    "g": 91,
    "b": 150
  },
  "hsl": {
    "h": 215.758,
    "s": 49.254,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4716,
    "c": 0.10624,
    "h": 258
  },
  "luminance": 0.10388
}

Semantic roles & 50–950 ramp

primary
#335B96
secondary
#B89A6D
accent
#A14FD9
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335B96

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

Preview Lab → · Contrast checker → · Palette generator →

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