#381259#381259

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

Color values

HEX#381259
RGBrgb(56, 18, 89)
HSLhsl(272, 66%, 21%)
HSVhsv(272, 80%, 35%)
CMYKcmyk(37.1%, 79.8%, 0%, 65.1%)
CIE-LABlab(15.46, 33.09, -34.91)
CIE-LCHlch(15.46, 48.10, 313.47°)
OKLaboklab(28.61% 0.0671 -0.0994)
OKLCHoklch(28.61% 0.12 304)
XYZxyz(3.6499, 1.9946, 9.6420)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381259 #335912
analogous
#151259 #381259 #591256
triadic
#381259 #593812 #125938
tetradic
#381259 #591512 #335912 #125659
square
#381259 #591512 #335912 #125659
split-complementary
#381259 #565912 #125915
monochromatic
#100519 #180826 #381259 #581C8C #7827BF

Accessibility & contrast

On white

15.01
#381259 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381259
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381259#FFFFFF#000000##FFFFFF
##3812591.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265B
Deuteranopia (green-blind)
#002758
Tritanopia (blue-blind)
#322434
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #381259;
/* rgb */ color: rgb(56, 18, 89);
/* oklch */ color: oklch(28.6% 0.120 304.0);
Tailwind
colors: {
  custom: {
    50: '#725488',
    500: '#381259',
    950: '#000000',
  },
}
SCSS
$custom: #381259;
$custom-light: #725488;
$custom-dark: #000000;
JSON
{
  "hex": "#381259",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 89
  },
  "hsl": {
    "h": 272.113,
    "s": 66.355,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28605,
    "c": 0.1199,
    "h": 304
  },
  "luminance": 0.01995
}

Semantic roles & 50–950 ramp

primary
#381259
secondary
#609235
accent
#E93F8E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381259

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

Preview Lab → · Contrast checker → · Palette generator →

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