#381257#381257

#381257 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.118 H 305.0°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#381257
RGBrgb(56, 18, 87)
HSLhsl(273, 66%, 21%)
HSVhsv(273, 79%, 34%)
CMYKcmyk(35.6%, 79.3%, 0%, 65.9%)
CIE-LABlab(15.28, 32.56, -33.84)
CIE-LCHlch(15.28, 46.96, 313.89°)
OKLaboklab(28.43% 0.0675 -0.0963)
OKLCHoklch(28.43% 0.118 305)
XYZxyz(3.5671, 1.9615, 9.2057)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381257 #315712
analogous
#151257 #381257 #571253
triadic
#381257 #573812 #125738
tetradic
#381257 #571512 #315712 #125357
square
#381257 #571512 #315712 #125357
split-complementary
#381257 #535712 #125715
monochromatic
#100519 #170824 #381257 #591C8A #7927BC

Accessibility & contrast

On white

15.08
#381257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#381257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381257
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381257#FFFFFF#000000##FFFFFF
##3812571.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#002656
Tritanopia (blue-blind)
#322333
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #381257;
/* rgb */ color: rgb(56, 18, 87);
/* oklch */ color: oklch(28.4% 0.118 305.0);
Tailwind
colors: {
  custom: {
    50: '#725487',
    500: '#381257',
    950: '#000000',
  },
}
SCSS
$custom: #381257;
$custom-light: #725487;
$custom-dark: #000000;
JSON
{
  "hex": "#381257",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 273.043,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28426,
    "c": 0.11759,
    "h": 305
  },
  "luminance": 0.01961
}

Semantic roles & 50–950 ramp

primary
#381257
secondary
#5E9035
accent
#E93F8B
background
#F7F5F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381257

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

Preview Lab → · Contrast checker → · Palette generator →

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