#333996#333996

#333996 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.9% C 0.150 H 274.5°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#333996
RGBrgb(51, 57, 150)
HSLhsl(236, 49%, 39%)
HSVhsv(236, 66%, 59%)
CMYKcmyk(66%, 62%, 0%, 41.2%)
CIE-LABlab(28.98, 28.22, -51.91)
CIE-LCHlch(28.98, 59.08, 298.53°)
OKLaboklab(39.91% 0.0118 -0.1495)
OKLCHoklch(39.91% 0.15 274.5)
XYZxyz(8.3316, 5.8314, 29.5348)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333996 #969033
analogous
#336B96 #333996 #5F3396
triadic
#333996 #963339 #399633
tetradic
#333996 #96336B #969033 #33965F
square
#333996 #96336B #969033 #33965F
split-complementary
#333996 #965F33 #6B9633
monochromatic
#14163B #232868 #333996 #464DC0 #7479D0

Accessibility & contrast

On white

9.69
#333996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#333996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333996
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333996#FFFFFF#000000##FFFFFF
##3339961.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004999
Deuteranopia (green-blind)
#004094
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #333996;
/* rgb */ color: rgb(51, 57, 150);
/* oklch */ color: oklch(39.9% 0.150 274.5);
Tailwind
colors: {
  custom: {
    50: '#776fb6',
    500: '#333996',
    950: '#000000',
  },
}
SCSS
$custom: #333996;
$custom-light: #776fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#333996",
  "rgb": {
    "r": 51,
    "g": 57,
    "b": 150
  },
  "hsl": {
    "h": 236.364,
    "s": 49.254,
    "l": 39.412
  },
  "oklch": {
    "l": 0.39911,
    "c": 0.14999,
    "h": 274.5
  },
  "luminance": 0.05832
}

Semantic roles & 50–950 ramp

primary
#333996
secondary
#B8B36D
accent
#D04FD9
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #333996

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

Preview Lab → · Contrast checker → · Palette generator →

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