#331B69#331B69

#331B69 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.128 H 291.1°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#331B69
RGBrgb(51, 27, 105)
HSLhsl(258, 59%, 26%)
HSVhsv(258, 74%, 41%)
CMYKcmyk(51.4%, 74.3%, 0%, 58.8%)
CIE-LABlab(17.95, 31.90, -41.48)
CIE-LCHlch(17.95, 52.33, 307.56°)
OKLaboklab(30.67% 0.0458 -0.119)
OKLCHoklch(30.67% 0.128 291.1)
XYZxyz(4.3063, 2.5074, 13.6189)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331B69 #51691B
analogous
#1B2A69 #331B69 #5A1B69
triadic
#331B69 #69331B #1B6933
tetradic
#331B69 #691B2A #51691B #1B695A
square
#331B69 #691B2A #51691B #1B695A
split-complementary
#331B69 #695A1B #2A691B
monochromatic
#0C0618 #1B0E38 #331B69 #4B289A #6234CA

Accessibility & contrast

On white

13.99
#331B69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#331B69 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331B69
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331B69#FFFFFF#000000##FFFFFF
##331B691.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331b69;
/* rgb */ color: rgb(51, 27, 105);
/* oklch */ color: oklch(30.7% 0.128 291.1);
Tailwind
colors: {
  custom: {
    50: '#715995',
    500: '#331b69',
    950: '#000000',
  },
}
SCSS
$custom: #331b69;
$custom-light: #715995;
$custom-dark: #000000;
JSON
{
  "hex": "#331b69",
  "rgb": {
    "r": 51,
    "g": 27,
    "b": 105
  },
  "hsl": {
    "h": 258.462,
    "s": 59.091,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30674,
    "c": 0.1275,
    "h": 291.1
  },
  "luminance": 0.02508
}

Semantic roles & 50–950 ramp

primary
#331B69
secondary
#829E42
accent
#E246B2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #331B69

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

Preview Lab → · Contrast checker → · Palette generator →

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