#333799#333799

#333799 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.8% C 0.157 H 274.9°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#333799
RGBrgb(51, 55, 153)
HSLhsl(238, 50%, 40%)
HSVhsv(238, 67%, 60%)
CMYKcmyk(66.7%, 64.1%, 0%, 40%)
CIE-LABlab(28.73, 30.59, -54.15)
CIE-LCHlch(28.73, 62.19, 299.47°)
OKLaboklab(39.81% 0.0134 -0.1561)
OKLCHoklch(39.81% 0.157 274.9)
XYZxyz(8.4793, 5.7354, 30.7910)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333799 #999533
analogous
#336A99 #333799 #623399
triadic
#333799 #993337 #379933
tetradic
#333799 #99336A #999533 #339962
square
#333799 #99336A #999533 #339962
split-complementary
#333799 #996233 #6A9933
monochromatic
#14163D #24276B #333799 #474CC2 #7579D1

Accessibility & contrast

On white

9.78
#333799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#333799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333799
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333799#FFFFFF#000000##FFFFFF
##3337991.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#003F97
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #333799;
/* rgb */ color: rgb(51, 55, 153);
/* oklch */ color: oklch(39.8% 0.157 274.9);
Tailwind
colors: {
  custom: {
    50: '#786eb8',
    500: '#333799',
    950: '#000000',
  },
}
SCSS
$custom: #333799;
$custom-light: #786eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#333799",
  "rgb": {
    "r": 51,
    "g": 55,
    "b": 153
  },
  "hsl": {
    "h": 237.647,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.39807,
    "c": 0.15668,
    "h": 274.9
  },
  "luminance": 0.05736
}

Semantic roles & 50–950 ramp

primary
#333799
secondary
#B9B66E
accent
#D44EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #333799

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

Preview Lab → · Contrast checker → · Palette generator →

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