#331A6E#331A6E

#331A6E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.135 H 289.7°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#331A6E
RGBrgb(51, 26, 110)
HSLhsl(258, 62%, 27%)
HSVhsv(258, 76%, 43%)
CMYKcmyk(53.6%, 76.4%, 0%, 56.9%)
CIE-LABlab(18.22, 34.01, -44.30)
CIE-LCHlch(18.22, 55.85, 307.51°)
OKLaboklab(31.01% 0.0457 -0.1272)
OKLCHoklch(31.01% 0.135 289.7)
XYZxyz(4.5483, 2.5682, 15.0049)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A6E #556E1A
analogous
#1A2B6E #331A6E #5D1A6E
triadic
#331A6E #6E331A #1A6E33
tetradic
#331A6E #6E1A2B #556E1A #1A6E5D
square
#331A6E #6E1A2B #556E1A #1A6E5D
split-complementary
#331A6E #6E5D1A #2B6E1A
monochromatic
#0B0619 #1C0E3D #331A6E #4A26A0 #6234CF

Accessibility & contrast

On white

13.87
#331A6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#331A6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A6E
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A6E#FFFFFF#000000##FFFFFF
##331A6E1.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E70
Deuteranopia (green-blind)
#002A6C
Tritanopia (blue-blind)
#1E3042
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331a6e;
/* rgb */ color: rgb(51, 26, 110);
/* oklch */ color: oklch(31.0% 0.135 289.7);
Tailwind
colors: {
  custom: {
    50: '#725998',
    500: '#331a6e',
    950: '#000000',
  },
}
SCSS
$custom: #331a6e;
$custom-light: #725998;
$custom-dark: #000000;
JSON
{
  "hex": "#331a6e",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 110
  },
  "hsl": {
    "h": 257.857,
    "s": 61.765,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31013,
    "c": 0.13518,
    "h": 289.7
  },
  "luminance": 0.02568
}

Semantic roles & 50–950 ramp

primary
#331A6E
secondary
#86A341
accent
#E543B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #331A6E

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

Preview Lab → · Contrast checker → · Palette generator →

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