#332291#332291

#332291 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.170 H 280.3°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#332291
RGBrgb(51, 34, 145)
HSLhsl(249, 62%, 35%)
HSVhsv(249, 77%, 57%)
CMYKcmyk(64.8%, 76.6%, 0%, 43.1%)
CIE-LABlab(23.31, 40.61, -58.13)
CIE-LCHlch(23.31, 70.90, 304.94°)
OKLaboklab(35.67% 0.0305 -0.1677)
OKLCHoklch(35.67% 0.17 280.3)
XYZxyz(7.0465, 3.8917, 27.1624)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332291 #809122
analogous
#224991 #332291 #6A2291
triadic
#332291 #913322 #229133
tetradic
#332291 #912249 #809122 #22916A
square
#332291 #912249 #809122 #22916A
split-complementary
#332291 #916A22 #499122
monochromatic
#100B2E #22165F #332291 #442EC3 #6A56D7

Accessibility & contrast

On white

11.81
#332291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#332291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332291
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332291#FFFFFF#000000##FFFFFF
##3322911.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C94
Deuteranopia (green-blind)
#00338F
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #332291;
/* rgb */ color: rgb(51, 34, 145);
/* oklch */ color: oklch(35.7% 0.170 280.3);
Tailwind
colors: {
  custom: {
    50: '#7860b2',
    500: '#332291',
    950: '#000000',
  },
}
SCSS
$custom: #332291;
$custom-light: #7860b2;
$custom-dark: #000000;
JSON
{
  "hex": "#332291",
  "rgb": {
    "r": 51,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 249.189,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35672,
    "c": 0.17049,
    "h": 280.3
  },
  "luminance": 0.03892
}

Semantic roles & 50–950 ramp

primary
#332291
secondary
#ABBB53
accent
#E543CC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332291

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

Preview Lab → · Contrast checker → · Palette generator →

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