#331245#331245

#331245 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.095 H 311.3°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#331245
RGBrgb(51, 18, 69)
HSLhsl(279, 59%, 17%)
HSVhsv(279, 74%, 27%)
CMYKcmyk(26.1%, 73.9%, 0%, 72.9%)
CIE-LABlab(13.02, 26.62, -25.18)
CIE-LCHlch(13.02, 36.64, 316.60°)
OKLaboklab(26.18% 0.0625 -0.071)
OKLCHoklch(26.18% 0.095 311.3)
XYZxyz(2.6555, 1.5662, 5.7915)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331245 #244512
analogous
#1A1245 #331245 #45123E
triadic
#331245 #453312 #124533
tetradic
#331245 #451A12 #244512 #123E45
square
#331245 #451A12 #244512 #123E45
split-complementary
#331245 #3E4512 #12451A
monochromatic
#120618 #120618 #331245 #571F76 #7B2BA6

Accessibility & contrast

On white

15.99
#331245 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#331245 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331245
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331245#FFFFFF#000000##FFFFFF
##3312451.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002047
Deuteranopia (green-blind)
#0C2244
Tritanopia (blue-blind)
#311C29
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #331245;
/* rgb */ color: rgb(51, 18, 69);
/* oklch */ color: oklch(26.2% 0.095 311.3);
Tailwind
colors: {
  custom: {
    50: '#6d5279',
    500: '#331245',
    950: '#000000',
  },
}
SCSS
$custom: #331245;
$custom-light: #6d5279;
$custom-dark: #000000;
JSON
{
  "hex": "#331245",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 69
  },
  "hsl": {
    "h": 278.824,
    "s": 58.621,
    "l": 17.059
  },
  "oklch": {
    "l": 0.2618,
    "c": 0.09457,
    "h": 311.3
  },
  "luminance": 0.01566
}

Semantic roles & 50–950 ramp

primary
#331245
secondary
#4F7E35
accent
#E2467D
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #331245

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

Preview Lab → · Contrast checker → · Palette generator →

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