#381456#381456

#381456 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.6% C 0.114 H 305.1°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#381456
RGBrgb(56, 20, 86)
HSLhsl(273, 62%, 21%)
HSVhsv(273, 77%, 34%)
CMYKcmyk(34.9%, 76.7%, 0%, 66.3%)
CIE-LABlab(15.56, 31.28, -32.73)
CIE-LCHlch(15.56, 45.27, 313.71°)
OKLaboklab(28.59% 0.0654 -0.093)
OKLCHoklch(28.59% 0.114 305.1)
XYZxyz(3.5604, 2.0130, 9.0033)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381456 #325614
analogous
#171456 #381456 #561453
triadic
#381456 #563814 #145638
tetradic
#381456 #561714 #325614 #145356
square
#381456 #561714 #325614 #145356
split-complementary
#381456 #535614 #145617
monochromatic
#100619 #180824 #381456 #582088 #792BB9

Accessibility & contrast

On white

14.97
#381456 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#381456 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381456
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381456#FFFFFF#000000##FFFFFF
##3814561.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002658
Deuteranopia (green-blind)
#002755
Tritanopia (blue-blind)
#322333
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #381456;
/* rgb */ color: rgb(56, 20, 86);
/* oklch */ color: oklch(28.6% 0.114 305.1);
Tailwind
colors: {
  custom: {
    50: '#725586',
    500: '#381456',
    950: '#000000',
  },
}
SCSS
$custom: #381456;
$custom-light: #725586;
$custom-dark: #000000;
JSON
{
  "hex": "#381456",
  "rgb": {
    "r": 56,
    "g": 20,
    "b": 86
  },
  "hsl": {
    "h": 272.727,
    "s": 62.264,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28592,
    "c": 0.11372,
    "h": 305.1
  },
  "luminance": 0.02013
}

Semantic roles & 50–950 ramp

primary
#381456
secondary
#5F8E38
accent
#E5428C
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381456

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

Preview Lab → · Contrast checker → · Palette generator →

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