#332990#332990

#332990 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.6% C 0.162 H 279.1°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#332990
RGBrgb(51, 41, 144)
HSLhsl(246, 56%, 36%)
HSVhsv(246, 72%, 56%)
CMYKcmyk(64.6%, 71.5%, 0%, 43.5%)
CIE-LABlab(24.65, 36.26, -55.31)
CIE-LCHlch(24.65, 66.13, 303.25°)
OKLaboklab(36.59% 0.0257 -0.1595)
OKLCHoklch(36.59% 0.162 279.1)
XYZxyz(7.1906, 4.3027, 26.8317)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332990 #869029
analogous
#295390 #332990 #672990
triadic
#332990 #903329 #299033
tetradic
#332990 #902953 #869029 #299067
square
#332990 #902953 #869029 #299067
split-complementary
#332990 #906729 #539029
monochromatic
#110E31 #221B60 #332990 #4437C0 #6C61D2

Accessibility & contrast

On white

11.29
#332990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332990
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332990#FFFFFF#000000##FFFFFF
##3329901.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E93
Deuteranopia (green-blind)
#00368E
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #332990;
/* rgb */ color: rgb(51, 41, 144);
/* oklch */ color: oklch(36.6% 0.162 279.1);
Tailwind
colors: {
  custom: {
    50: '#7764b2',
    500: '#332990',
    950: '#000000',
  },
}
SCSS
$custom: #332990;
$custom-light: #7764b2;
$custom-dark: #000000;
JSON
{
  "hex": "#332990",
  "rgb": {
    "r": 51,
    "g": 41,
    "b": 144
  },
  "hsl": {
    "h": 245.825,
    "s": 55.676,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36592,
    "c": 0.1616,
    "h": 279.1
  },
  "luminance": 0.04303
}

Semantic roles & 50–950 ramp

primary
#332990
secondary
#AFB85D
accent
#DF49D0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #332990

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

Preview Lab → · Contrast checker → · Palette generator →

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