#381258#381258

#381258 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.119 H 304.5°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#381258
RGBrgb(56, 18, 88)
HSLhsl(273, 66%, 21%)
HSVhsv(273, 80%, 35%)
CMYKcmyk(36.4%, 79.5%, 0%, 65.5%)
CIE-LABlab(15.37, 32.82, -34.37)
CIE-LCHlch(15.37, 47.53, 313.68°)
OKLaboklab(28.52% 0.0673 -0.0978)
OKLCHoklch(28.52% 0.119 304.5)
XYZxyz(3.6082, 1.9780, 9.4223)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381258 #325812
analogous
#151258 #381258 #581255
triadic
#381258 #583812 #125838
tetradic
#381258 #581512 #325812 #125558
square
#381258 #581512 #325812 #125558
split-complementary
#381258 #555812 #125815
monochromatic
#100519 #180825 #381258 #581C8B #7927BE

Accessibility & contrast

On white

15.05
#381258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381258
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381258#FFFFFF#000000##FFFFFF
##3812581.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002657
Tritanopia (blue-blind)
#322334
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #381258;
/* rgb */ color: rgb(56, 18, 88);
/* oklch */ color: oklch(28.5% 0.119 304.5);
Tailwind
colors: {
  custom: {
    50: '#725488',
    500: '#381258',
    950: '#000000',
  },
}
SCSS
$custom: #381258;
$custom-light: #725488;
$custom-dark: #000000;
JSON
{
  "hex": "#381258",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 272.571,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28515,
    "c": 0.11874,
    "h": 304.5
  },
  "luminance": 0.01978
}

Semantic roles & 50–950 ramp

primary
#381258
secondary
#5F9135
accent
#E93F8D
background
#F7F5F8
surface
#EDE8F0
border
#C8C4CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381258

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

Preview Lab → · Contrast checker → · Palette generator →

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