#332696#332696

#332696 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.173 H 278.9°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#332696
RGBrgb(51, 38, 150)
HSLhsl(247, 60%, 37%)
HSVhsv(247, 75%, 59%)
CMYKcmyk(66%, 74.7%, 0%, 41.2%)
CIE-LABlab(24.61, 39.99, -59.07)
CIE-LCHlch(24.61, 71.33, 304.10°)
OKLaboklab(36.75% 0.0267 -0.1705)
OKLCHoklch(36.75% 0.173 278.9)
XYZxyz(7.5616, 4.2914, 29.2781)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332696 #899626
analogous
#265196 #332696 #6B2696
triadic
#332696 #963326 #269633
tetradic
#332696 #962651 #899626 #26966B
square
#332696 #962651 #899626 #26966B
split-complementary
#332696 #966B26 #519626
monochromatic
#120D34 #221A65 #332696 #4432C7 #6E60D7

Accessibility & contrast

On white

11.30
#332696 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#332696 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332696
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332696#FFFFFF#000000##FFFFFF
##3326961.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003694
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #332696;
/* rgb */ color: rgb(51, 38, 150);
/* oklch */ color: oklch(36.7% 0.173 278.9);
Tailwind
colors: {
  custom: {
    50: '#7862b6',
    500: '#332696',
    950: '#000000',
  },
}
SCSS
$custom: #332696;
$custom-light: #7862b6;
$custom-dark: #000000;
JSON
{
  "hex": "#332696",
  "rgb": {
    "r": 51,
    "g": 38,
    "b": 150
  },
  "hsl": {
    "h": 246.964,
    "s": 59.574,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36747,
    "c": 0.17259,
    "h": 278.9
  },
  "luminance": 0.04292
}

Semantic roles & 50–950 ramp

primary
#332696
secondary
#B1BC5C
accent
#E345D0
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332696

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

Preview Lab → · Contrast checker → · Palette generator →

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