#331450#331450

#331450 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.105 H 303.8°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#331450
RGBrgb(51, 20, 80)
HSLhsl(271, 60%, 20%)
HSVhsv(271, 75%, 31%)
CMYKcmyk(36.3%, 75%, 0%, 68.6%)
CIE-LABlab(14.31, 28.48, -30.71)
CIE-LCHlch(14.31, 41.88, 312.85°)
OKLaboklab(27.38% 0.0585 -0.0873)
OKLCHoklch(27.38% 0.105 303.8)
XYZxyz(3.0630, 1.7833, 7.7707)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331450 #315014
analogous
#151450 #331450 #50144F
triadic
#331450 #503314 #145033
tetradic
#331450 #501514 #315014 #144F50
square
#331450 #501514 #315014 #144F50
split-complementary
#331450 #4F5014 #145015
monochromatic
#100618 #14081F #331450 #522081 #712CB2

Accessibility & contrast

On white

15.48
#331450 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331450
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331450#FFFFFF#000000##FFFFFF
##3314501.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002452
Deuteranopia (green-blind)
#00244F
Tritanopia (blue-blind)
#2D2230
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331450;
/* rgb */ color: rgb(51, 20, 80);
/* oklch */ color: oklch(27.4% 0.105 303.8);
Tailwind
colors: {
  custom: {
    50: '#6e5482',
    500: '#331450',
    950: '#000000',
  },
}
SCSS
$custom: #331450;
$custom-light: #6e5482;
$custom-dark: #000000;
JSON
{
  "hex": "#331450",
  "rgb": {
    "r": 51,
    "g": 20,
    "b": 80
  },
  "hsl": {
    "h": 271,
    "s": 60,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27381,
    "c": 0.10508,
    "h": 303.8
  },
  "luminance": 0.01783
}

Semantic roles & 50–950 ramp

primary
#331450
secondary
#5F8838
accent
#E34591
background
#F6F4F7
surface
#ECE8EE
border
#C7C4C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #331450

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

Preview Lab → · Contrast checker → · Palette generator →

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