#331A70#331A70

#331A70 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.138 H 289.1°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#331A70
RGBrgb(51, 26, 112)
HSLhsl(257, 62%, 27%)
HSVhsv(257, 77%, 44%)
CMYKcmyk(54.5%, 76.8%, 0%, 56.1%)
CIE-LABlab(18.42, 34.62, -45.28)
CIE-LCHlch(18.42, 57.00, 307.41°)
OKLaboklab(31.21% 0.0452 -0.1301)
OKLCHoklch(31.21% 0.138 289.1)
XYZxyz(4.6584, 2.6122, 15.5848)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A70 #57701A
analogous
#1A2C70 #331A70 #5E1A70
triadic
#331A70 #70331A #1A7033
tetradic
#331A70 #701A2C #57701A #1A705E
square
#331A70 #701A2C #57701A #1A705E
split-complementary
#331A70 #705E1A #2C701A
monochromatic
#0B0619 #1C0E3E #331A70 #4A26A2 #6234D0

Accessibility & contrast

On white

13.79
#331A70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#331A70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A70
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A70#FFFFFF#000000##FFFFFF
##331A701.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F72
Deuteranopia (green-blind)
#002B6E
Tritanopia (blue-blind)
#1C3143
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #331a70;
/* rgb */ color: rgb(51, 26, 112);
/* oklch */ color: oklch(31.2% 0.138 289.1);
Tailwind
colors: {
  custom: {
    50: '#72599a',
    500: '#331a70',
    950: '#000000',
  },
}
SCSS
$custom: #331a70;
$custom-light: #72599a;
$custom-dark: #000000;
JSON
{
  "hex": "#331a70",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 112
  },
  "hsl": {
    "h": 257.442,
    "s": 62.319,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3121,
    "c": 0.13771,
    "h": 289.1
  },
  "luminance": 0.02612
}

Semantic roles & 50–950 ramp

primary
#331A70
secondary
#88A541
accent
#E542B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #331A70

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

Preview Lab → · Contrast checker → · Palette generator →

#331A70 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva