#381F90#381F90

#381F90 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.171 H 283.6°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#381F90
RGBrgb(56, 31, 144)
HSLhsl(253, 65%, 34%)
HSVhsv(253, 78%, 56%)
CMYKcmyk(61.1%, 78.5%, 0%, 43.5%)
CIE-LABlab(23.11, 42.51, -57.81)
CIE-LCHlch(23.11, 71.76, 306.32°)
OKLaboklab(35.62% 0.0403 -0.1666)
OKLCHoklch(35.62% 0.171 283.6)
XYZxyz(7.1534, 3.8339, 26.7432)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F90 #77901F
analogous
#1F3F90 #381F90 #711F90
triadic
#381F90 #90381F #1F9038
tetradic
#381F90 #901F3F #77901F #1F9071
square
#381F90 #901F3F #77901F #1F9071
split-complementary
#381F90 #90711F #3F901F
monochromatic
#11092B #24145E #381F90 #4C2AC2 #6E50D9

Accessibility & contrast

On white

11.89
#381F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#381F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F90
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F90#FFFFFF#000000##FFFFFF
##381F901.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A93
Deuteranopia (green-blind)
#00338E
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #381f90;
/* rgb */ color: rgb(56, 31, 144);
/* oklch */ color: oklch(35.6% 0.171 283.6);
Tailwind
colors: {
  custom: {
    50: '#7a5eb2',
    500: '#381f90',
    950: '#000000',
  },
}
SCSS
$custom: #381f90;
$custom-light: #7a5eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#381f90",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 144
  },
  "hsl": {
    "h": 253.274,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35618,
    "c": 0.17146,
    "h": 283.6
  },
  "luminance": 0.03834
}

Semantic roles & 50–950 ramp

primary
#381F90
secondary
#A4BC4E
accent
#E840C3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #381F90

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

Preview Lab → · Contrast checker → · Palette generator →

#381F90 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva