#381283#381283

#381283 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.8% C 0.168 H 288.4°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#381283
RGBrgb(56, 18, 131)
HSLhsl(260, 76%, 29%)
HSVhsv(260, 86%, 51%)
CMYKcmyk(57.3%, 86.3%, 0%, 48.6%)
CIE-LABlab(19.69, 44.63, -55.32)
CIE-LCHlch(19.69, 71.08, 308.89°)
OKLaboklab(32.83% 0.053 -0.1592)
OKLCHoklch(32.83% 0.168 288.4)
XYZxyz(5.9427, 2.9118, 21.7172)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381283 #5D8312
analogous
#122583 #381283 #711283
triadic
#381283 #833812 #128338
tetradic
#381283 #831225 #5D8312 #128371
square
#381283 #831225 #5D8312 #128371
split-complementary
#381283 #837112 #258312
monochromatic
#0C041B #210B4D #381283 #4F19B9 #6A2DE2

Accessibility & contrast

On white

13.27
#381283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#381283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381283
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381283#FFFFFF#000000##FFFFFF
##3812831.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003286
Deuteranopia (green-blind)
#002D81
Tritanopia (blue-blind)
#17354D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #381283;
/* rgb */ color: rgb(56, 18, 131);
/* oklch */ color: oklch(32.8% 0.168 288.4);
Tailwind
colors: {
  custom: {
    50: '#7957a8',
    500: '#381283',
    950: '#000000',
  },
}
SCSS
$custom: #381283;
$custom-light: #7957a8;
$custom-dark: #000000;
JSON
{
  "hex": "#381283",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 131
  },
  "hsl": {
    "h": 260.177,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32826,
    "c": 0.16781,
    "h": 288.4
  },
  "luminance": 0.02912
}

Semantic roles & 50–950 ramp

primary
#381283
secondary
#8DB838
accent
#F235B3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #381283

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

Preview Lab → · Contrast checker → · Palette generator →

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