#331145#331145

#331145 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.096 H 311.6°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#331145
RGBrgb(51, 17, 69)
HSLhsl(279, 60%, 17%)
HSVhsv(279, 75%, 27%)
CMYKcmyk(26.1%, 75.4%, 0%, 72.9%)
CIE-LABlab(12.83, 27.17, -25.49)
CIE-LCHlch(12.83, 37.26, 316.82°)
OKLaboklab(26.04% 0.0638 -0.0719)
OKLCHoklch(26.04% 0.096 311.6)
XYZxyz(2.6397, 1.5344, 5.7862)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331145 #234511
analogous
#191145 #331145 #45113D
triadic
#331145 #453311 #114533
tetradic
#331145 #451911 #234511 #113D45
square
#331145 #451911 #234511 #113D45
split-complementary
#331145 #3D4511 #114519
monochromatic
#120619 #120619 #331145 #571D76 #7C29A7

Accessibility & contrast

On white

16.07
#331145 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331145
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331145#FFFFFF#000000##FFFFFF
##3311451.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331145;
/* rgb */ color: rgb(51, 17, 69);
/* oklch */ color: oklch(26.0% 0.096 311.6);
Tailwind
colors: {
  custom: {
    50: '#6d5279',
    500: '#331145',
    950: '#000000',
  },
}
SCSS
$custom: #331145;
$custom-light: #6d5279;
$custom-dark: #000000;
JSON
{
  "hex": "#331145",
  "rgb": {
    "r": 51,
    "g": 17,
    "b": 69
  },
  "hsl": {
    "h": 279.231,
    "s": 60.465,
    "l": 16.863
  },
  "oklch": {
    "l": 0.26038,
    "c": 0.09616,
    "h": 311.6
  },
  "luminance": 0.01534
}

Semantic roles & 50–950 ramp

primary
#331145
secondary
#4D7F33
accent
#E4447B
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #331145

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

Preview Lab → · Contrast checker → · Palette generator →

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