#332193#332193

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

Color values

HEX#332193
RGBrgb(51, 33, 147)
HSLhsl(249, 63%, 35%)
HSVhsv(249, 78%, 58%)
CMYKcmyk(65.3%, 77.6%, 0%, 42.4%)
CIE-LABlab(23.33, 41.78, -59.33)
CIE-LCHlch(23.33, 72.57, 305.15°)
OKLaboklab(35.75% 0.0306 -0.1713)
OKLCHoklch(35.75% 0.174 280.1)
XYZxyz(7.1739, 3.8975, 27.9724)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332193 #819321
analogous
#214893 #332193 #6C2193
triadic
#332193 #933321 #219333
tetradic
#332193 #932148 #819321 #21936C
square
#332193 #932148 #819321 #21936C
split-complementary
#332193 #936C21 #489321
monochromatic
#100B2F #221661 #332193 #442CC5 #6A55D9

Accessibility & contrast

On white

11.80
#332193 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332193
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332193#FFFFFF#000000##FFFFFF
##3321931.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C96
Deuteranopia (green-blind)
#003391
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #332193;
/* rgb */ color: rgb(51, 33, 147);
/* oklch */ color: oklch(35.7% 0.174 280.1);
Tailwind
colors: {
  custom: {
    50: '#785fb4',
    500: '#332193',
    950: '#000000',
  },
}
SCSS
$custom: #332193;
$custom-light: #785fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#332193",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 147
  },
  "hsl": {
    "h": 249.474,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35749,
    "c": 0.17396,
    "h": 280.1
  },
  "luminance": 0.03898
}

Semantic roles & 50–950 ramp

primary
#332193
secondary
#ACBD53
accent
#E641CC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332193

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

Preview Lab → · Contrast checker → · Palette generator →

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