#381254#381254

#381254 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.2% C 0.114 H 306.7°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#381254
RGBrgb(56, 18, 84)
HSLhsl(275, 65%, 20%)
HSVhsv(275, 79%, 33%)
CMYKcmyk(33.3%, 78.6%, 0%, 67.1%)
CIE-LABlab(15.03, 31.77, -32.23)
CIE-LCHlch(15.03, 45.25, 314.59°)
OKLaboklab(28.16% 0.0681 -0.0915)
OKLCHoklch(28.16% 0.114 306.7)
XYZxyz(3.4471, 1.9135, 8.5735)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381254 #2E5412
analogous
#171254 #381254 #54124F
triadic
#381254 #543812 #125438
tetradic
#381254 #541712 #2E5412 #124F54
square
#381254 #541712 #2E5412 #124F54
split-complementary
#381254 #4F5412 #125417
monochromatic
#110519 #160722 #381254 #5A1D86 #7B28B9

Accessibility & contrast

On white

15.19
#381254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#381254 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381254
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381254#FFFFFF#000000##FFFFFF
##3812541.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002556
Deuteranopia (green-blind)
#002653
Tritanopia (blue-blind)
#332232
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #381254;
/* rgb */ color: rgb(56, 18, 84);
/* oklch */ color: oklch(28.2% 0.114 306.7);
Tailwind
colors: {
  custom: {
    50: '#725485',
    500: '#381254',
    950: '#000000',
  },
}
SCSS
$custom: #381254;
$custom-light: #725485;
$custom-dark: #000000;
JSON
{
  "hex": "#381254",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 274.545,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.28163,
    "c": 0.11411,
    "h": 306.7
  },
  "luminance": 0.01913
}

Semantic roles & 50–950 ramp

primary
#381254
secondary
#5A8D35
accent
#E84087
background
#F7F4F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381254

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

Preview Lab → · Contrast checker → · Palette generator →

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