#332383#332383

#332383 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.152 H 282.5°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#332383
RGBrgb(51, 35, 131)
HSLhsl(250, 58%, 33%)
HSVhsv(250, 73%, 51%)
CMYKcmyk(61.1%, 73.3%, 0%, 48.6%)
CIE-LABlab(22.10, 35.53, -51.37)
CIE-LCHlch(22.10, 62.46, 304.67°)
OKLaboklab(34.39% 0.0329 -0.148)
OKLCHoklch(34.39% 0.152 282.5)
XYZxyz(6.0617, 3.5442, 21.8330)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332383 #738323
analogous
#234383 #332383 #632383
triadic
#332383 #833323 #238333
tetradic
#332383 #832343 #738323 #238363
square
#332383 #832343 #738323 #238363
split-complementary
#332383 #836323 #438323
monochromatic
#0D0922 #201653 #332383 #4630B3 #6550D0

Accessibility & contrast

On white

12.29
#332383 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#332383 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332383
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332383#FFFFFF#000000##FFFFFF
##3323831.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003886
Deuteranopia (green-blind)
#003281
Tritanopia (blue-blind)
#003D50
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #332383;
/* rgb */ color: rgb(51, 35, 131);
/* oklch */ color: oklch(34.4% 0.152 282.5);
Tailwind
colors: {
  custom: {
    50: '#7560a8',
    500: '#332383',
    950: '#000000',
  },
}
SCSS
$custom: #332383;
$custom-light: #7560a8;
$custom-dark: #000000;
JSON
{
  "hex": "#332383",
  "rgb": {
    "r": 51,
    "g": 35,
    "b": 131
  },
  "hsl": {
    "h": 250,
    "s": 57.831,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34391,
    "c": 0.15161,
    "h": 282.5
  },
  "luminance": 0.03545
}

Semantic roles & 50–950 ramp

primary
#332383
secondary
#A3B44E
accent
#E147C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #332383

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

Preview Lab → · Contrast checker → · Palette generator →

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