#332190#332190

#332190 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.170 H 280.6°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#332190
RGBrgb(51, 33, 144)
HSLhsl(250, 63%, 35%)
HSVhsv(250, 77%, 56%)
CMYKcmyk(64.6%, 77.1%, 0%, 43.5%)
CIE-LABlab(23.01, 40.83, -57.99)
CIE-LCHlch(23.01, 70.93, 305.15°)
OKLaboklab(35.43% 0.0314 -0.1673)
OKLCHoklch(35.43% 0.17 280.6)
XYZxyz(6.9415, 3.8046, 26.7487)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332190 #7E9021
analogous
#214690 #332190 #6B2190
triadic
#332190 #903321 #219033
tetradic
#332190 #902146 #7E9021 #21906B
square
#332190 #902146 #7E9021 #21906B
split-complementary
#332190 #906B21 #469021
monochromatic
#100A2C #21165E #332190 #452CC2 #6954D8

Accessibility & contrast

On white

11.93
#332190 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#332190 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332190
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332190#FFFFFF#000000##FFFFFF
##3321901.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B93
Deuteranopia (green-blind)
#00338E
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #332190;
/* rgb */ color: rgb(51, 33, 144);
/* oklch */ color: oklch(35.4% 0.170 280.6);
Tailwind
colors: {
  custom: {
    50: '#785fb2',
    500: '#332190',
    950: '#000000',
  },
}
SCSS
$custom: #332190;
$custom-light: #785fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#332190",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 144
  },
  "hsl": {
    "h": 249.73,
    "s": 62.712,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35433,
    "c": 0.17027,
    "h": 280.6
  },
  "luminance": 0.03805
}

Semantic roles & 50–950 ramp

primary
#332190
secondary
#AABB51
accent
#E642CB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332190

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

Preview Lab → · Contrast checker → · Palette generator →

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