#335099#335099

#335099 is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.9% C 0.124 H 265.4°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#335099
RGBrgb(51, 80, 153)
HSLhsl(223, 50%, 40%)
HSVhsv(223, 67%, 60%)
CMYKcmyk(66.7%, 47.7%, 0%, 40%)
CIE-LABlab(35.48, 14.01, -43.23)
CIE-LCHlch(35.48, 45.44, 287.95°)
OKLaboklab(44.87% -0.0099 -0.1237)
OKLCHoklch(44.87% 0.124 265.4)
XYZxyz(9.9817, 8.7401, 31.2918)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335099 #997C33
analogous
#338399 #335099 #493399
triadic
#335099 #993350 #509933
tetradic
#335099 #993383 #997C33 #339949
square
#335099 #993383 #997C33 #339949
split-complementary
#335099 #994933 #839933
monochromatic
#14203D #24386B #335099 #476AC2 #758FD1

Accessibility & contrast

On white

7.64
#335099 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#335099 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335099
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335099#FFFFFF#000000##FFFFFF
##3350991.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B589C
Deuteranopia (green-blind)
#174F97
Tritanopia (blue-blind)
#00616D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #335099;
/* rgb */ color: rgb(51, 80, 153);
/* oklch */ color: oklch(44.9% 0.124 265.4);
Tailwind
colors: {
  custom: {
    50: '#7680b7',
    500: '#335099',
    950: '#000000',
  },
}
SCSS
$custom: #335099;
$custom-light: #7680b7;
$custom-dark: #000000;
JSON
{
  "hex": "#335099",
  "rgb": {
    "r": 51,
    "g": 80,
    "b": 153
  },
  "hsl": {
    "h": 222.941,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.44867,
    "c": 0.12409,
    "h": 265.4
  },
  "luminance": 0.08741
}

Semantic roles & 50–950 ramp

primary
#335099
secondary
#B9A46E
accent
#B24EDA
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #335099

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

Preview Lab → · Contrast checker → · Palette generator →

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