#331B65#331B65

#331B65 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.122 H 292.4°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#331B65
RGBrgb(51, 27, 101)
HSLhsl(259, 58%, 25%)
HSVhsv(259, 73%, 40%)
CMYKcmyk(49.5%, 73.3%, 0%, 60.4%)
CIE-LABlab(17.59, 30.67, -39.46)
CIE-LCHlch(17.59, 49.97, 307.86°)
OKLaboklab(30.3% 0.0466 -0.113)
OKLCHoklch(30.3% 0.122 292.4)
XYZxyz(4.1055, 2.4271, 12.5616)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331B65 #4D651B
analogous
#1B2865 #331B65 #581B65
triadic
#331B65 #65331B #1B6533
tetradic
#331B65 #651B28 #4D651B #1B6558
square
#331B65 #651B28 #4D651B #1B6558
split-complementary
#331B65 #65581B #28651B
monochromatic
#0C0618 #1B0E35 #331B65 #4B2895 #6435C6

Accessibility & contrast

On white

14.14
#331B65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331B65
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331B65#FFFFFF#000000##FFFFFF
##331B651.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C67
Deuteranopia (green-blind)
#002A64
Tritanopia (blue-blind)
#242E3D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331b65;
/* rgb */ color: rgb(51, 27, 101);
/* oklch */ color: oklch(30.3% 0.122 292.4);
Tailwind
colors: {
  custom: {
    50: '#705992',
    500: '#331b65',
    950: '#000000',
  },
}
SCSS
$custom: #331b65;
$custom-light: #705992;
$custom-dark: #000000;
JSON
{
  "hex": "#331b65",
  "rgb": {
    "r": 51,
    "g": 27,
    "b": 101
  },
  "hsl": {
    "h": 259.459,
    "s": 57.813,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30299,
    "c": 0.12227,
    "h": 292.4
  },
  "luminance": 0.02427
}

Semantic roles & 50–950 ramp

primary
#331B65
secondary
#7E9A41
accent
#E147AF
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #331B65

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

Preview Lab → · Contrast checker → · Palette generator →

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