#381B68#381B68

#381B68 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.126 H 295.3°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#381B68
RGBrgb(56, 27, 104)
HSLhsl(263, 59%, 26%)
HSVhsv(263, 74%, 41%)
CMYKcmyk(46.2%, 74%, 0%, 59.2%)
CIE-LABlab(18.47, 32.58, -39.96)
CIE-LCHlch(18.47, 51.56, 309.19°)
OKLaboklab(31.16% 0.054 -0.1143)
OKLCHoklch(31.16% 0.126 295.3)
XYZxyz(4.5208, 2.6240, 13.3623)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B68 #4B681B
analogous
#1B2468 #381B68 #5E1B68
triadic
#381B68 #68381B #1B6838
tetradic
#381B68 #681B24 #4B681B #1B685E
square
#381B68 #681B24 #4B681B #1B685E
split-complementary
#381B68 #685E1B #24681B
monochromatic
#0D0618 #1E0E37 #381B68 #522899 #6C34C9

Accessibility & contrast

On white

13.77
#381B68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#381B68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B68
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B68#FFFFFF#000000##FFFFFF
##381B681.0013.771.5213.77
#FFFFFF13.771.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6A
Deuteranopia (green-blind)
#002C66
Tritanopia (blue-blind)
#2B2E3F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #381b68;
/* rgb */ color: rgb(56, 27, 104);
/* oklch */ color: oklch(31.2% 0.126 295.3);
Tailwind
colors: {
  custom: {
    50: '#745a94',
    500: '#381b68',
    950: '#000000',
  },
}
SCSS
$custom: #381b68;
$custom-light: #745a94;
$custom-dark: #000000;
JSON
{
  "hex": "#381b68",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 104
  },
  "hsl": {
    "h": 262.597,
    "s": 58.779,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31155,
    "c": 0.12643,
    "h": 295.3
  },
  "luminance": 0.02624
}

Semantic roles & 50–950 ramp

primary
#381B68
secondary
#7B9D42
accent
#E246A7
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #381B68

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

Preview Lab → · Contrast checker → · Palette generator →

#381B68 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva