#332391#332391

#332391 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.169 H 280.1°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#332391
RGBrgb(51, 35, 145)
HSLhsl(249, 61%, 35%)
HSVhsv(249, 76%, 57%)
CMYKcmyk(64.8%, 75.9%, 0%, 43.1%)
CIE-LABlab(23.50, 40.06, -57.81)
CIE-LCHlch(23.50, 70.33, 304.72°)
OKLaboklab(35.81% 0.0298 -0.1668)
OKLCHoklch(35.81% 0.169 280.1)
XYZxyz(7.0755, 3.9497, 27.1721)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332391 #819123
analogous
#234A91 #332391 #6A2391
triadic
#332391 #913323 #239133
tetradic
#332391 #91234A #819123 #23916A
square
#332391 #91234A #819123 #23916A
split-complementary
#332391 #916A23 #4A9123
monochromatic
#100B2E #221760 #332391 #442FC2 #6A58D7

Accessibility & contrast

On white

11.73
#332391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#332391 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332391
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332391#FFFFFF#000000##FFFFFF
##3323911.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #332391;
/* rgb */ color: rgb(51, 35, 145);
/* oklch */ color: oklch(35.8% 0.169 280.1);
Tailwind
colors: {
  custom: {
    50: '#7860b2',
    500: '#332391',
    950: '#000000',
  },
}
SCSS
$custom: #332391;
$custom-light: #7860b2;
$custom-dark: #000000;
JSON
{
  "hex": "#332391",
  "rgb": {
    "r": 51,
    "g": 35,
    "b": 145
  },
  "hsl": {
    "h": 248.727,
    "s": 61.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35809,
    "c": 0.16946,
    "h": 280.1
  },
  "luminance": 0.0395
}

Semantic roles & 50–950 ramp

primary
#332391
secondary
#ACBB55
accent
#E444CD
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332391

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

Preview Lab → · Contrast checker → · Palette generator →

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