#381261#381261

#381261 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.129 H 300.2°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#381261
RGBrgb(56, 18, 97)
HSLhsl(269, 69%, 23%)
HSVhsv(269, 81%, 38%)
CMYKcmyk(42.3%, 81.4%, 0%, 62%)
CIE-LABlab(16.19, 35.24, -39.07)
CIE-LCHlch(16.19, 52.61, 312.05°)
OKLaboklab(29.34% 0.065 -0.1116)
OKLCHoklch(29.34% 0.129 300.2)
XYZxyz(4.0043, 2.1364, 11.5083)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381261 #3B6112
analogous
#121361 #381261 #601261
triadic
#381261 #613812 #126138
tetradic
#381261 #611213 #3B6112 #126160
square
#381261 #611213 #3B6112 #126160
split-complementary
#381261 #616012 #136112
monochromatic
#0F051A #1A082D #381261 #561C95 #7425C8

Accessibility & contrast

On white

14.71
#381261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#381261 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381261
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381261#FFFFFF#000000##FFFFFF
##3812611.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002863
Deuteranopia (green-blind)
#00285F
Tritanopia (blue-blind)
#2E2739
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #381261;
/* rgb */ color: rgb(56, 18, 97);
/* oklch */ color: oklch(29.3% 0.129 300.2);
Tailwind
colors: {
  custom: {
    50: '#73558f',
    500: '#381261',
    950: '#000000',
  },
}
SCSS
$custom: #381261;
$custom-light: #73558f;
$custom-dark: #000000;
JSON
{
  "hex": "#381261",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 97
  },
  "hsl": {
    "h": 268.861,
    "s": 68.696,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29343,
    "c": 0.12916,
    "h": 300.2
  },
  "luminance": 0.02136
}

Semantic roles & 50–950 ramp

primary
#381261
secondary
#699936
accent
#EC3C97
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #381261

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

Preview Lab → · Contrast checker → · Palette generator →

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