#331A6F#331A6F

#331A6F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.136 H 289.4°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#331A6F
RGBrgb(51, 26, 111)
HSLhsl(258, 62%, 27%)
HSVhsv(258, 77%, 44%)
CMYKcmyk(54.1%, 76.6%, 0%, 56.5%)
CIE-LABlab(18.32, 34.31, -44.79)
CIE-LCHlch(18.32, 56.42, 307.46°)
OKLaboklab(31.11% 0.0454 -0.1287)
OKLCHoklch(31.11% 0.136 289.4)
XYZxyz(4.6030, 2.5901, 15.2932)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A6F #566F1A
analogous
#1A2C6F #331A6F #5E1A6F
triadic
#331A6F #6F331A #1A6F33
tetradic
#331A6F #6F1A2C #566F1A #1A6F5E
square
#331A6F #6F1A2C #566F1A #1A6F5E
split-complementary
#331A6F #6F5E1A #2C6F1A
monochromatic
#0B0619 #1C0E3D #331A6F #4A26A1 #6234CF

Accessibility & contrast

On white

13.83
#331A6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331A6F
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A6F#FFFFFF#000000##FFFFFF
##331A6F1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#1D3143
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #331a6f;
/* rgb */ color: rgb(51, 26, 111);
/* oklch */ color: oklch(31.1% 0.136 289.4);
Tailwind
colors: {
  custom: {
    50: '#725999',
    500: '#331a6f',
    950: '#000000',
  },
}
SCSS
$custom: #331a6f;
$custom-light: #725999;
$custom-dark: #000000;
JSON
{
  "hex": "#331a6f",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 111
  },
  "hsl": {
    "h": 257.647,
    "s": 62.044,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31111,
    "c": 0.13645,
    "h": 289.4
  },
  "luminance": 0.0259
}

Semantic roles & 50–950 ramp

primary
#331A6F
secondary
#87A441
accent
#E543B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #331A6F

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

Preview Lab → · Contrast checker → · Palette generator →

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