#331489#331489

#331489 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.2% C 0.174 H 283.8°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#331489
RGBrgb(51, 20, 137)
HSLhsl(256, 75%, 31%)
HSVhsv(256, 85%, 54%)
CMYKcmyk(62.8%, 85.4%, 0%, 46.3%)
CIE-LABlab(20.08, 44.98, -58.47)
CIE-LCHlch(20.08, 73.76, 307.57°)
OKLaboklab(33.17% 0.0413 -0.1686)
OKLCHoklch(33.17% 0.174 283.8)
XYZxyz(6.1294, 3.0098, 23.9200)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331489 #6A8914
analogous
#143089 #331489 #6D1489
triadic
#331489 #893314 #148933
tetradic
#331489 #891430 #6A8914 #14896D
square
#331489 #891430 #6A8914 #14896D
split-complementary
#331489 #896D14 #308914
monochromatic
#0B041E #1F0C54 #331489 #471CBE #6336E2

Accessibility & contrast

On white

13.11
#331489 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#331489 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331489
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331489#FFFFFF#000000##FFFFFF
##3314891.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002D87
Tritanopia (blue-blind)
#003950
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #331489;
/* rgb */ color: rgb(51, 20, 137);
/* oklch */ color: oklch(33.2% 0.174 283.8);
Tailwind
colors: {
  custom: {
    50: '#7758ad',
    500: '#331489',
    950: '#000000',
  },
}
SCSS
$custom: #331489;
$custom-light: #7758ad;
$custom-dark: #000000;
JSON
{
  "hex": "#331489",
  "rgb": {
    "r": 51,
    "g": 20,
    "b": 137
  },
  "hsl": {
    "h": 255.897,
    "s": 74.522,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33167,
    "c": 0.17354,
    "h": 283.8
  },
  "luminance": 0.0301
}

Semantic roles & 50–950 ramp

primary
#331489
secondary
#9BBD3C
accent
#F137C0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #331489

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

Preview Lab → · Contrast checker → · Palette generator →

#331489 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva