#381574#381574

#381574 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.148 H 292.4°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#381574
RGBrgb(56, 21, 116)
HSLhsl(262, 69%, 27%)
HSVhsv(262, 82%, 45%)
CMYKcmyk(51.7%, 81.9%, 0%, 54.5%)
CIE-LABlab(18.53, 39.14, -47.65)
CIE-LCHlch(18.53, 61.66, 309.39°)
OKLaboklab(31.55% 0.0564 -0.1368)
OKLCHoklch(31.55% 0.148 292.4)
XYZxyz(5.0506, 2.6379, 16.7627)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381574 #517415
analogous
#152274 #381574 #681574
triadic
#381574 #743815 #157438
tetradic
#381574 #741522 #517415 #157468
square
#381574 #741522 #517415 #157468
split-complementary
#381574 #746815 #227415
monochromatic
#0D051A #1F0C40 #381574 #511EA8 #6B2BD9

Accessibility & contrast

On white

13.75
#381574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#381574 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381574
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381574#FFFFFF#000000##FFFFFF
##3815741.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002B72
Tritanopia (blue-blind)
#243044
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #381574;
/* rgb */ color: rgb(56, 21, 116);
/* oklch */ color: oklch(31.5% 0.148 292.4);
Tailwind
colors: {
  custom: {
    50: '#76579d',
    500: '#381574',
    950: '#000000',
  },
}
SCSS
$custom: #381574;
$custom-light: #76579d;
$custom-dark: #000000;
JSON
{
  "hex": "#381574",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 262.105,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31549,
    "c": 0.14802,
    "h": 292.4
  },
  "luminance": 0.02638
}

Semantic roles & 50–950 ramp

primary
#381574
secondary
#81AA3B
accent
#EC3CAB
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381574

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

Preview Lab → · Contrast checker → · Palette generator →

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