#331B67#331B67

#331B67 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.5% C 0.125 H 291.7°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#331B67
RGBrgb(51, 27, 103)
HSLhsl(259, 58%, 25%)
HSVhsv(259, 74%, 40%)
CMYKcmyk(50.5%, 73.8%, 0%, 59.6%)
CIE-LABlab(17.77, 31.28, -40.47)
CIE-LCHlch(17.77, 51.15, 307.70°)
OKLaboklab(30.49% 0.0462 -0.116)
OKLCHoklch(30.49% 0.125 291.7)
XYZxyz(4.2047, 2.4668, 13.0839)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331B67 #4F671B
analogous
#1B2967 #331B67 #591B67
triadic
#331B67 #67331B #1B6733
tetradic
#331B67 #671B29 #4F671B #1B6759
square
#331B67 #671B29 #4F671B #1B6759
split-complementary
#331B67 #67591B #29671B
monochromatic
#0C0618 #1B0E37 #331B67 #4B2897 #6334C8

Accessibility & contrast

On white

14.06
#331B67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#331B67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331B67
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331B67#FFFFFF#000000##FFFFFF
##331B671.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D69
Deuteranopia (green-blind)
#002A65
Tritanopia (blue-blind)
#232E3F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331b67;
/* rgb */ color: rgb(51, 27, 103);
/* oklch */ color: oklch(30.5% 0.125 291.7);
Tailwind
colors: {
  custom: {
    50: '#705993',
    500: '#331b67',
    950: '#000000',
  },
}
SCSS
$custom: #331b67;
$custom-light: #705993;
$custom-dark: #000000;
JSON
{
  "hex": "#331b67",
  "rgb": {
    "r": 51,
    "g": 27,
    "b": 103
  },
  "hsl": {
    "h": 258.947,
    "s": 58.462,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30485,
    "c": 0.12489,
    "h": 291.7
  },
  "luminance": 0.02467
}

Semantic roles & 50–950 ramp

primary
#331B67
secondary
#809C42
accent
#E246B1
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #331B67

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

Preview Lab → · Contrast checker → · Palette generator →

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