#381374#381374

#381374 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.150 H 292.7°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#381374
RGBrgb(56, 19, 116)
HSLhsl(263, 72%, 26%)
HSVhsv(263, 84%, 45%)
CMYKcmyk(51.7%, 83.6%, 0%, 54.5%)
CIE-LABlab(18.22, 40.04, -48.17)
CIE-LCHlch(18.22, 62.63, 309.73°)
OKLaboklab(31.33% 0.058 -0.1383)
OKLCHoklch(31.33% 0.15 292.7)
XYZxyz(5.0153, 2.5673, 16.7509)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381374 #4F7413
analogous
#131E74 #381374 #691374
triadic
#381374 #743813 #137438
tetradic
#381374 #74131E #4F7413 #137469
square
#381374 #74131E #4F7413 #137469
split-complementary
#381374 #746913 #1E7413
monochromatic
#0D041A #1F0A3F #381374 #511CA9 #6B26DB

Accessibility & contrast

On white

13.88
#381374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381374
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381374#FFFFFF#000000##FFFFFF
##3813741.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002B72
Tritanopia (blue-blind)
#242F44
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #381374;
/* rgb */ color: rgb(56, 19, 116);
/* oklch */ color: oklch(31.3% 0.150 292.7);
Tailwind
colors: {
  custom: {
    50: '#76569d',
    500: '#381374',
    950: '#000000',
  },
}
SCSS
$custom: #381374;
$custom-light: #76569d;
$custom-dark: #000000;
JSON
{
  "hex": "#381374",
  "rgb": {
    "r": 56,
    "g": 19,
    "b": 116
  },
  "hsl": {
    "h": 262.887,
    "s": 71.852,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31333,
    "c": 0.14997,
    "h": 292.7
  },
  "luminance": 0.02567
}

Semantic roles & 50–950 ramp

primary
#381374
secondary
#7FAA38
accent
#EF39A9
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381374

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

Preview Lab → · Contrast checker → · Palette generator →

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