#331070#331070

#331070 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 30.0% C 0.148 H 291.0°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#331070
RGBrgb(51, 16, 112)
HSLhsl(262, 75%, 25%)
HSVhsv(262, 86%, 44%)
CMYKcmyk(54.5%, 85.7%, 0%, 56.1%)
CIE-LABlab(16.72, 39.50, -48.07)
CIE-LCHlch(16.72, 62.22, 309.41°)
OKLaboklab(30.02% 0.0531 -0.1382)
OKLCHoklch(30.02% 0.148 291)
XYZxyz(4.4743, 2.2441, 15.5235)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331070 #4D7010
analogous
#101D70 #331070 #631070
triadic
#331070 #703310 #107033
tetradic
#331070 #70101D #4D7010 #107063
square
#331070 #70101D #4D7010 #107063
split-complementary
#331070 #706310 #1D7010
monochromatic
#0C041B #1B083A #331070 #4B18A6 #641FDB

Accessibility & contrast

On white

14.49
#331070 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#331070 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331070
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331070#FFFFFF#000000##FFFFFF
##3310701.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B73
Deuteranopia (green-blind)
#00276E
Tritanopia (blue-blind)
#1D2D41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #331070;
/* rgb */ color: rgb(51, 16, 112);
/* oklch */ color: oklch(30.0% 0.148 291.0);
Tailwind
colors: {
  custom: {
    50: '#73549a',
    500: '#331070',
    950: '#000000',
  },
}
SCSS
$custom: #331070;
$custom-light: #73549a;
$custom-dark: #000000;
JSON
{
  "hex": "#331070",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 112
  },
  "hsl": {
    "h": 261.875,
    "s": 75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30024,
    "c": 0.14804,
    "h": 291
  },
  "luminance": 0.02244
}

Semantic roles & 50–950 ramp

primary
#331070
secondary
#7EA834
accent
#F236AD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331070

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

Preview Lab → · Contrast checker → · Palette generator →

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