#335A99#335A99

#335A99 is a mid, moderate blue. Relative luminance 0.103; OKLCH L 47.1% C 0.112 H 259.6°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#335A99
RGBrgb(51, 90, 153)
HSLhsl(217, 50%, 40%)
HSVhsv(217, 67%, 60%)
CMYKcmyk(66.7%, 41.2%, 0%, 40%)
CIE-LABlab(38.40, 7.45, -38.56)
CIE-LCHlch(38.40, 39.27, 280.94°)
OKLaboklab(47.12% -0.0202 -0.1098)
OKLCHoklch(47.12% 0.112 259.6)
XYZxyz(10.7691, 10.3150, 31.5543)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335A99 #997233
analogous
#338D99 #335A99 #3F3399
triadic
#335A99 #99335A #5A9933
tetradic
#335A99 #99338D #997233 #33993F
square
#335A99 #99338D #997233 #33993F
split-complementary
#335A99 #993F33 #8D9933
monochromatic
#14243D #243F6B #335A99 #4776C2 #7598D1

Accessibility & contrast

On white

6.86
#335A99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#335A99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #335A99
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335A99#FFFFFF#000000##FFFFFF
##335A991.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D609B
Deuteranopia (green-blind)
#2E5698
Tritanopia (blue-blind)
#006872
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #335a99;
/* rgb */ color: rgb(51, 90, 153);
/* oklch */ color: oklch(47.1% 0.112 259.6);
Tailwind
colors: {
  custom: {
    50: '#7688b7',
    500: '#335a99',
    950: '#000000',
  },
}
SCSS
$custom: #335a99;
$custom-light: #7688b7;
$custom-dark: #000000;
JSON
{
  "hex": "#335a99",
  "rgb": {
    "r": 51,
    "g": 90,
    "b": 153
  },
  "hsl": {
    "h": 217.059,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.47118,
    "c": 0.11167,
    "h": 259.6
  },
  "luminance": 0.10316
}

Semantic roles & 50–950 ramp

primary
#335A99
secondary
#B99D6E
accent
#A44EDA
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #335A99

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

Preview Lab → · Contrast checker → · Palette generator →

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