#333399#333399

#333399 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.1% C 0.162 H 275.9°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#333399
RGBrgb(51, 51, 153)
HSLhsl(240, 50%, 40%)
HSVhsv(240, 67%, 60%)
CMYKcmyk(66.7%, 66.7%, 0%, 40%)
CIE-LABlab(27.77, 33.16, -55.73)
CIE-LCHlch(27.77, 64.85, 300.75°)
OKLaboklab(39.1% 0.0167 -0.1608)
OKLCHoklch(39.1% 0.162 275.9)
XYZxyz(8.2970, 5.3707, 30.7302)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333399 #999933
analogous
#336699 #333399 #663399
triadic
#333399 #993333 #339933
tetradic
#333399 #993366 #999933 #339966
square
#333399 #993366 #999933 #339966
split-complementary
#333399 #996633 #669933
monochromatic
#14143D #24246B #333399 #4747C2 #7575D1

Accessibility & contrast

On white

10.12
#333399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#333399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333399
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333399#FFFFFF#000000##FFFFFF
##3333991.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#003D97
Tritanopia (blue-blind)
#004E61
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #333399;
/* rgb */ color: rgb(51, 51, 153);
/* oklch */ color: oklch(39.1% 0.162 275.9);
Tailwind
colors: {
  custom: {
    50: '#786bb8',
    500: '#333399',
    950: '#000000',
  },
}
SCSS
$custom: #333399;
$custom-light: #786bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#333399",
  "rgb": {
    "r": 51,
    "g": 51,
    "b": 153
  },
  "hsl": {
    "h": 240,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.39099,
    "c": 0.16164,
    "h": 275.9
  },
  "luminance": 0.05371
}

Semantic roles & 50–950 ramp

primary
#333399
secondary
#B9B96E
accent
#DA4EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #333399

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

Preview Lab → · Contrast checker → · Palette generator →

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