#331470#331470

#331470 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.144 H 290.4°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#331470
RGBrgb(51, 20, 112)
HSLhsl(260, 70%, 26%)
HSVhsv(260, 82%, 44%)
CMYKcmyk(54.5%, 82.1%, 0%, 56.1%)
CIE-LABlab(17.34, 37.71, -47.05)
CIE-LCHlch(17.34, 60.30, 308.71°)
OKLaboklab(30.45% 0.0502 -0.1352)
OKLCHoklch(30.45% 0.144 290.4)
XYZxyz(4.5392, 2.3738, 15.5451)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331470 #517014
analogous
#142370 #331470 #611470
triadic
#331470 #703314 #147033
tetradic
#331470 #701423 #517014 #147061
square
#331470 #701423 #517014 #147061
split-complementary
#331470 #706114 #237014
monochromatic
#0C051A #1B0B3C #331470 #4B1DA4 #6227D8

Accessibility & contrast

On white

14.24
#331470 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#331470 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331470
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331470#FFFFFF#000000##FFFFFF
##3314701.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C73
Deuteranopia (green-blind)
#00286E
Tritanopia (blue-blind)
#1D2E42
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331470;
/* rgb */ color: rgb(51, 20, 112);
/* oklch */ color: oklch(30.5% 0.144 290.4);
Tailwind
colors: {
  custom: {
    50: '#72569a',
    500: '#331470',
    950: '#000000',
  },
}
SCSS
$custom: #331470;
$custom-light: #72569a;
$custom-dark: #000000;
JSON
{
  "hex": "#331470",
  "rgb": {
    "r": 51,
    "g": 20,
    "b": 112
  },
  "hsl": {
    "h": 260.217,
    "s": 69.697,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30452,
    "c": 0.14427,
    "h": 290.4
  },
  "luminance": 0.02374
}

Semantic roles & 50–950 ramp

primary
#331470
secondary
#82A639
accent
#ED3BB1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331470

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

Preview Lab → · Contrast checker → · Palette generator →

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