#331894#331894

#331894 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.183 H 281.1°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#331894
RGBrgb(51, 24, 148)
HSLhsl(253, 72%, 34%)
HSVhsv(253, 84%, 58%)
CMYKcmyk(65.5%, 83.8%, 0%, 42%)
CIE-LABlab(21.93, 46.47, -62.27)
CIE-LCHlch(21.93, 77.70, 306.73°)
OKLaboklab(34.8% 0.0353 -0.1797)
OKLCHoklch(34.8% 0.183 281.1)
XYZxyz(7.0355, 3.4947, 28.3150)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331894 #799418
analogous
#183B94 #331894 #711894
triadic
#331894 #943318 #189433
tetradic
#331894 #94183B #799418 #189471
square
#331894 #94183B #799418 #189471
split-complementary
#331894 #947118 #3B9418
monochromatic
#0F072B #210F5F #331894 #4521C9 #6745E1

Accessibility & contrast

On white

12.36
#331894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#331894 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331894
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331894#FFFFFF#000000##FFFFFF
##3318941.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#003092
Tritanopia (blue-blind)
#003F58
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #331894;
/* rgb */ color: rgb(51, 24, 148);
/* oklch */ color: oklch(34.8% 0.183 281.1);
Tailwind
colors: {
  custom: {
    50: '#795ab5',
    500: '#331894',
    950: '#000000',
  },
}
SCSS
$custom: #331894;
$custom-light: #795ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#331894",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 148
  },
  "hsl": {
    "h": 253.065,
    "s": 72.093,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34804,
    "c": 0.18314,
    "h": 281.1
  },
  "luminance": 0.03495
}

Semantic roles & 50–950 ramp

primary
#331894
secondary
#A7C246
accent
#EF39C7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #331894

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

Preview Lab → · Contrast checker → · Palette generator →

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