#331370#331370

#331370 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.145 H 290.5°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#331370
RGBrgb(51, 19, 112)
HSLhsl(261, 71%, 26%)
HSVhsv(261, 83%, 44%)
CMYKcmyk(54.5%, 83%, 0%, 56.1%)
CIE-LABlab(17.18, 38.18, -47.32)
CIE-LCHlch(17.18, 60.80, 308.90°)
OKLaboklab(30.34% 0.051 -0.136)
OKLCHoklch(30.34% 0.145 290.5)
XYZxyz(4.5219, 2.3392, 15.5393)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331370 #507013
analogous
#132270 #331370 #611370
triadic
#331370 #703313 #137033
tetradic
#331370 #701322 #507013 #137061
square
#331370 #701322 #507013 #137061
split-complementary
#331370 #706113 #227013
monochromatic
#0C041A #1B0A3C #331370 #4B1CA4 #6325D9

Accessibility & contrast

On white

14.31
#331370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331370
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331370#FFFFFF#000000##FFFFFF
##3313701.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331370;
/* rgb */ color: rgb(51, 19, 112);
/* oklch */ color: oklch(30.3% 0.145 290.5);
Tailwind
colors: {
  custom: {
    50: '#73559a',
    500: '#331370',
    950: '#000000',
  },
}
SCSS
$custom: #331370;
$custom-light: #73559a;
$custom-dark: #000000;
JSON
{
  "hex": "#331370",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 112
  },
  "hsl": {
    "h": 260.645,
    "s": 70.992,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30339,
    "c": 0.14526,
    "h": 290.5
  },
  "luminance": 0.02339
}

Semantic roles & 50–950 ramp

primary
#331370
secondary
#81A738
accent
#EE3AB0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331370

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

Preview Lab → · Contrast checker → · Palette generator →

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