#333396#333396

#333396 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.8% C 0.158 H 276.2°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#333396
RGBrgb(51, 51, 150)
HSLhsl(240, 49%, 39%)
HSVhsv(240, 66%, 59%)
CMYKcmyk(66%, 66%, 0%, 41.2%)
CIE-LABlab(27.50, 32.11, -54.33)
CIE-LCHlch(27.50, 63.11, 300.58°)
OKLaboklab(38.82% 0.0169 -0.1567)
OKLCHoklch(38.82% 0.158 276.2)
XYZxyz(8.0523, 5.2728, 29.4417)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333396 #969633
analogous
#336596 #333396 #653396
triadic
#333396 #963333 #339633
tetradic
#333396 #963365 #969633 #339665
square
#333396 #963365 #969633 #339665
split-complementary
#333396 #966533 #659633
monochromatic
#14143B #232368 #333396 #4646C0 #7474D0

Accessibility & contrast

On white

10.22
#333396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#333396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333396
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333396#FFFFFF#000000##FFFFFF
##3333961.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#003D94
Tritanopia (blue-blind)
#004C60
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #333396;
/* rgb */ color: rgb(51, 51, 150);
/* oklch */ color: oklch(38.8% 0.158 276.2);
Tailwind
colors: {
  custom: {
    50: '#776bb6',
    500: '#333396',
    950: '#000000',
  },
}
SCSS
$custom: #333396;
$custom-light: #776bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#333396",
  "rgb": {
    "r": 51,
    "g": 51,
    "b": 150
  },
  "hsl": {
    "h": 240,
    "s": 49.254,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38822,
    "c": 0.15758,
    "h": 276.2
  },
  "luminance": 0.05273
}

Semantic roles & 50–950 ramp

primary
#333396
secondary
#B8B86D
accent
#D94FD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #333396

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

Preview Lab → · Contrast checker → · Palette generator →

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