#331452#331452

#331452 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.108 H 302.8°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#331452
RGBrgb(51, 20, 82)
HSLhsl(270, 61%, 20%)
HSVhsv(270, 76%, 32%)
CMYKcmyk(37.8%, 75.6%, 0%, 67.8%)
CIE-LABlab(14.48, 29.04, -31.80)
CIE-LCHlch(14.48, 43.06, 312.41°)
OKLaboklab(27.56% 0.0582 -0.0905)
OKLCHoklch(27.56% 0.108 302.8)
XYZxyz(3.1380, 1.8133, 8.1657)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331452 #335214
analogous
#141452 #331452 #521452
triadic
#331452 #523314 #145233
tetradic
#331452 #521414 #335214 #145252
square
#331452 #521414 #335214 #145252
split-complementary
#331452 #525214 #145214
monochromatic
#0F0619 #140821 #331452 #522083 #702CB4

Accessibility & contrast

On white

15.41
#331452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#331452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331452
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331452#FFFFFF#000000##FFFFFF
##3314521.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#2D2231
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331452;
/* rgb */ color: rgb(51, 20, 82);
/* oklch */ color: oklch(27.6% 0.108 302.8);
Tailwind
colors: {
  custom: {
    50: '#6e5483',
    500: '#331452',
    950: '#000000',
  },
}
SCSS
$custom: #331452;
$custom-light: #6e5483;
$custom-dark: #000000;
JSON
{
  "hex": "#331452",
  "rgb": {
    "r": 51,
    "g": 20,
    "b": 82
  },
  "hsl": {
    "h": 270,
    "s": 60.784,
    "l": 20
  },
  "oklch": {
    "l": 0.27555,
    "c": 0.10758,
    "h": 302.8
  },
  "luminance": 0.01813
}

Semantic roles & 50–950 ramp

primary
#331452
secondary
#618A38
accent
#E44494
background
#F6F4F8
surface
#ECE8EF
border
#C7C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331452

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

Preview Lab → · Contrast checker → · Palette generator →

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