#331045#331045

#331045 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.098 H 311.8°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#331045
RGBrgb(51, 16, 69)
HSLhsl(280, 62%, 17%)
HSVhsv(280, 77%, 27%)
CMYKcmyk(26.1%, 76.8%, 0%, 72.9%)
CIE-LABlab(12.63, 27.70, -25.80)
CIE-LCHlch(12.63, 37.86, 317.04°)
OKLaboklab(25.9% 0.0651 -0.0728)
OKLCHoklch(25.9% 0.098 311.8)
XYZxyz(2.6245, 1.5041, 5.7811)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331045 #224510
analogous
#191045 #331045 #45103D
triadic
#331045 #453310 #104533
tetradic
#331045 #451910 #224510 #103D45
square
#331045 #451910 #224510 #103D45
split-complementary
#331045 #3D4510 #104519
monochromatic
#120619 #120619 #331045 #581C77 #7C27A8

Accessibility & contrast

On white

16.14
#331045 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#331045 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331045
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331045#FFFFFF#000000##FFFFFF
##3310451.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F47
Deuteranopia (green-blind)
#0A2144
Tritanopia (blue-blind)
#311B29
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #331045;
/* rgb */ color: rgb(51, 16, 69);
/* oklch */ color: oklch(25.9% 0.098 311.8);
Tailwind
colors: {
  custom: {
    50: '#6d5179',
    500: '#331045',
    950: '#000000',
  },
}
SCSS
$custom: #331045;
$custom-light: #6d5179;
$custom-dark: #000000;
JSON
{
  "hex": "#331045",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 69
  },
  "hsl": {
    "h": 279.623,
    "s": 62.353,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25901,
    "c": 0.0977,
    "h": 311.8
  },
  "luminance": 0.01504
}

Semantic roles & 50–950 ramp

primary
#331045
secondary
#4C7F32
accent
#E5427A
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #331045

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

Preview Lab → · Contrast checker → · Palette generator →

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