#331472#331472

#331472 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.147 H 289.7°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#331472
RGBrgb(51, 20, 114)
HSLhsl(260, 70%, 26%)
HSVhsv(260, 82%, 45%)
CMYKcmyk(55.3%, 82.5%, 0%, 55.3%)
CIE-LABlab(17.55, 38.29, -48.00)
CIE-LCHlch(17.55, 61.40, 308.58°)
OKLaboklab(30.66% 0.0495 -0.138)
OKLCHoklch(30.66% 0.147 289.7)
XYZxyz(4.6518, 2.4188, 16.1381)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331472 #537214
analogous
#142472 #331472 #621472
triadic
#331472 #723314 #147233
tetradic
#331472 #721424 #537214 #147262
square
#331472 #721424 #537214 #147262
split-complementary
#331472 #726214 #247214
monochromatic
#0C051A #1C0B3E #331472 #4A1DA6 #6227D9

Accessibility & contrast

On white

14.15
#331472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#331472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331472
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331472#FFFFFF#000000##FFFFFF
##3314721.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#1B2F43
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331472;
/* rgb */ color: rgb(51, 20, 114);
/* oklch */ color: oklch(30.7% 0.147 289.7);
Tailwind
colors: {
  custom: {
    50: '#73569c',
    500: '#331472',
    950: '#000000',
  },
}
SCSS
$custom: #331472;
$custom-light: #73569c;
$custom-dark: #000000;
JSON
{
  "hex": "#331472",
  "rgb": {
    "r": 51,
    "g": 20,
    "b": 114
  },
  "hsl": {
    "h": 259.787,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30661,
    "c": 0.14665,
    "h": 289.7
  },
  "luminance": 0.02419
}

Semantic roles & 50–950 ramp

primary
#331472
secondary
#84A839
accent
#ED3BB2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331472

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

Preview Lab → · Contrast checker → · Palette generator →

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