#332791#332791

#332791 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.4% C 0.165 H 279.4°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#332791
RGBrgb(51, 39, 145)
HSLhsl(247, 58%, 36%)
HSVhsv(247, 73%, 57%)
CMYKcmyk(64.8%, 73.1%, 0%, 43.1%)
CIE-LABlab(24.32, 37.78, -56.47)
CIE-LCHlch(24.32, 67.94, 303.78°)
OKLaboklab(36.39% 0.027 -0.1629)
OKLCHoklch(36.39% 0.165 279.4)
XYZxyz(7.2000, 4.1986, 27.2136)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332791 #859127
analogous
#275091 #332791 #682791
triadic
#332791 #913327 #279133
tetradic
#332791 #912750 #859127 #279168
square
#332791 #912750 #859127 #279168
split-complementary
#332791 #916827 #509127
monochromatic
#110D31 #221A61 #332791 #4434C1 #6C5FD4

Accessibility & contrast

On white

11.41
#332791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#332791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332791
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332791#FFFFFF#000000##FFFFFF
##3327911.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E94
Deuteranopia (green-blind)
#00368F
Tritanopia (blue-blind)
#004459
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #332791;
/* rgb */ color: rgb(51, 39, 145);
/* oklch */ color: oklch(36.4% 0.165 279.4);
Tailwind
colors: {
  custom: {
    50: '#7763b2',
    500: '#332791',
    950: '#000000',
  },
}
SCSS
$custom: #332791;
$custom-light: #7763b2;
$custom-dark: #000000;
JSON
{
  "hex": "#332791",
  "rgb": {
    "r": 51,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 246.792,
    "s": 57.609,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36386,
    "c": 0.16515,
    "h": 279.4
  },
  "luminance": 0.04199
}

Semantic roles & 50–950 ramp

primary
#332791
secondary
#AEB95B
accent
#E147CF
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332791

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

Preview Lab → · Contrast checker → · Palette generator →

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