#331B6A#331B6A

#331B6A is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.129 H 290.7°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#331B6A
RGBrgb(51, 27, 106)
HSLhsl(258, 59%, 26%)
HSVhsv(258, 75%, 42%)
CMYKcmyk(51.9%, 74.5%, 0%, 58.4%)
CIE-LABlab(18.05, 32.21, -41.98)
CIE-LCHlch(18.05, 52.92, 307.50°)
OKLaboklab(30.77% 0.0456 -0.1204)
OKLCHoklch(30.77% 0.129 290.7)
XYZxyz(4.3580, 2.5281, 13.8912)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331B6A #526A1B
analogous
#1B2A6A #331B6A #5A1B6A
triadic
#331B6A #6A331B #1B6A33
tetradic
#331B6A #6A1B2A #526A1B #1B6A5A
square
#331B6A #6A1B2A #526A1B #1B6A5A
split-complementary
#331B6A #6A5A1B #2A6A1B
monochromatic
#0C0618 #1C0F39 #331B6A #4A279B #6234CB

Accessibility & contrast

On white

13.95
#331B6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331B6A
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331B6A#FFFFFF#000000##FFFFFF
##331B6A1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6C
Deuteranopia (green-blind)
#002A68
Tritanopia (blue-blind)
#212F40
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331b6a;
/* rgb */ color: rgb(51, 27, 106);
/* oklch */ color: oklch(30.8% 0.129 290.7);
Tailwind
colors: {
  custom: {
    50: '#715a95',
    500: '#331b6a',
    950: '#000000',
  },
}
SCSS
$custom: #331b6a;
$custom-light: #715a95;
$custom-dark: #000000;
JSON
{
  "hex": "#331b6a",
  "rgb": {
    "r": 51,
    "g": 27,
    "b": 106
  },
  "hsl": {
    "h": 258.228,
    "s": 59.398,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30769,
    "c": 0.1288,
    "h": 290.7
  },
  "luminance": 0.02528
}

Semantic roles & 50–950 ramp

primary
#331B6A
secondary
#839F42
accent
#E345B3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #331B6A

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

Preview Lab → · Contrast checker → · Palette generator →

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