#335199#335199

#335199 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.1% C 0.123 H 264.9°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#335199
RGBrgb(51, 81, 153)
HSLhsl(222, 50%, 40%)
HSVhsv(222, 67%, 60%)
CMYKcmyk(66.7%, 47.1%, 0%, 40%)
CIE-LABlab(35.77, 13.34, -42.76)
CIE-LCHlch(35.77, 44.80, 287.33°)
OKLaboklab(45.09% -0.0109 -0.1223)
OKLCHoklch(45.09% 0.123 264.9)
XYZxyz(10.0554, 8.8876, 31.3164)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335199 #997B33
analogous
#338499 #335199 #483399
triadic
#335199 #993351 #519933
tetradic
#335199 #993384 #997B33 #339948
square
#335199 #993384 #997B33 #339948
split-complementary
#335199 #994833 #849933
monochromatic
#14203D #24396B #335199 #476BC2 #7590D1

Accessibility & contrast

On white

7.56
#335199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#335199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335199
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335199#FFFFFF#000000##FFFFFF
##3351991.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D599C
Deuteranopia (green-blind)
#1A5098
Tritanopia (blue-blind)
#00626D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #335199;
/* rgb */ color: rgb(51, 81, 153);
/* oklch */ color: oklch(45.1% 0.123 264.9);
Tailwind
colors: {
  custom: {
    50: '#7681b7',
    500: '#335199',
    950: '#000000',
  },
}
SCSS
$custom: #335199;
$custom-light: #7681b7;
$custom-dark: #000000;
JSON
{
  "hex": "#335199",
  "rgb": {
    "r": 51,
    "g": 81,
    "b": 153
  },
  "hsl": {
    "h": 222.353,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.45088,
    "c": 0.1228,
    "h": 264.9
  },
  "luminance": 0.08889
}

Semantic roles & 50–950 ramp

primary
#335199
secondary
#B9A36E
accent
#B14EDA
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #335199

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

Preview Lab → · Contrast checker → · Palette generator →

#335199 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva