#381895#381895

#381895 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.184 H 283.5°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#381895
RGBrgb(56, 24, 149)
HSLhsl(255, 72%, 34%)
HSVhsv(255, 84%, 58%)
CMYKcmyk(62.4%, 83.9%, 0%, 41.6%)
CIE-LABlab(22.53, 47.26, -61.88)
CIE-LCHlch(22.53, 77.86, 307.37°)
OKLaboklab(35.37% 0.0429 -0.1784)
OKLCHoklch(35.37% 0.184 283.5)
XYZxyz(7.3807, 3.6634, 28.7461)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381895 #759518
analogous
#183795 #381895 #771895
triadic
#381895 #953818 #189538
tetradic
#381895 #951837 #759518 #189577
square
#381895 #951837 #759518 #189577
split-complementary
#381895 #957718 #379518
monochromatic
#10072C #241060 #381895 #4C20CA #6E46E1

Accessibility & contrast

On white

12.12
#381895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#381895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381895
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381895#FFFFFF#000000##FFFFFF
##3818951.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#003293
Tritanopia (blue-blind)
#003F58
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #381895;
/* rgb */ color: rgb(56, 24, 149);
/* oklch */ color: oklch(35.4% 0.184 283.5);
Tailwind
colors: {
  custom: {
    50: '#7c5bb5',
    500: '#381895',
    950: '#000000',
  },
}
SCSS
$custom: #381895;
$custom-light: #7c5bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#381895",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 255.36,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3537,
    "c": 0.18351,
    "h": 283.5
  },
  "luminance": 0.03664
}

Semantic roles & 50–950 ramp

primary
#381895
secondary
#A3C246
accent
#EF39C0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #381895

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

Preview Lab → · Contrast checker → · Palette generator →

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