#331870#331870

#331870 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.140 H 289.6°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#331870
RGBrgb(51, 24, 112)
HSLhsl(258, 65%, 27%)
HSVhsv(258, 79%, 44%)
CMYKcmyk(54.5%, 78.6%, 0%, 56.1%)
CIE-LABlab(18.04, 35.70, -45.90)
CIE-LCHlch(18.04, 58.15, 307.87°)
OKLaboklab(30.94% 0.0469 -0.1319)
OKLCHoklch(30.94% 0.14 289.6)
XYZxyz(4.6157, 2.5267, 15.5706)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331870 #557018
analogous
#182970 #331870 #5F1870
triadic
#331870 #703318 #187033
tetradic
#331870 #701829 #557018 #18705F
square
#331870 #701829 #557018 #18705F
split-complementary
#331870 #705F18 #297018
monochromatic
#0B0519 #1C0D3E #331870 #4A23A2 #6230D3

Accessibility & contrast

On white

13.95
#331870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#331870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331870
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331870#FFFFFF#000000##FFFFFF
##3318701.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E73
Deuteranopia (green-blind)
#002A6E
Tritanopia (blue-blind)
#1C3043
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331870;
/* rgb */ color: rgb(51, 24, 112);
/* oklch */ color: oklch(30.9% 0.140 289.6);
Tailwind
colors: {
  custom: {
    50: '#72589a',
    500: '#331870',
    950: '#000000',
  },
}
SCSS
$custom: #331870;
$custom-light: #72589a;
$custom-dark: #000000;
JSON
{
  "hex": "#331870",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 258.409,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30943,
    "c": 0.14001,
    "h": 289.6
  },
  "luminance": 0.02527
}

Semantic roles & 50–950 ramp

primary
#331870
secondary
#86A53E
accent
#E840B4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #331870

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

Preview Lab → · Contrast checker → · Palette generator →

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