#331773#331773

#331773 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.145 H 288.9°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#331773
RGBrgb(51, 23, 115)
HSLhsl(258, 67%, 27%)
HSVhsv(258, 80%, 45%)
CMYKcmyk(55.7%, 80%, 0%, 54.9%)
CIE-LABlab(18.16, 37.12, -47.64)
CIE-LCHlch(18.16, 60.39, 307.92°)
OKLaboklab(31.12% 0.0469 -0.137)
OKLCHoklch(31.12% 0.145 288.9)
XYZxyz(4.7652, 2.5542, 16.4582)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331773 #577317
analogous
#172973 #331773 #611773
triadic
#331773 #733317 #177333
tetradic
#331773 #731729 #577317 #177361
square
#331773 #731729 #577317 #177361
split-complementary
#331773 #736117 #297317
monochromatic
#0B051A #1C0D40 #331773 #4A21A6 #622FD5

Accessibility & contrast

On white

13.90
#331773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#331773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331773
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331773#FFFFFF#000000##FFFFFF
##3317731.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#1A3144
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331773;
/* rgb */ color: rgb(51, 23, 115);
/* oklch */ color: oklch(31.1% 0.145 288.9);
Tailwind
colors: {
  custom: {
    50: '#73589c',
    500: '#331773',
    950: '#000000',
  },
}
SCSS
$custom: #331773;
$custom-light: #73589c;
$custom-dark: #000000;
JSON
{
  "hex": "#331773",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 115
  },
  "hsl": {
    "h": 258.261,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31121,
    "c": 0.14479,
    "h": 288.9
  },
  "luminance": 0.02554
}

Semantic roles & 50–950 ramp

primary
#331773
secondary
#88A93D
accent
#EA3EB5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331773

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

Preview Lab → · Contrast checker → · Palette generator →

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