#381A63#381A63

#381A63 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.121 H 297.5°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#381A63
RGBrgb(56, 26, 99)
HSLhsl(265, 58%, 25%)
HSVhsv(265, 74%, 39%)
CMYKcmyk(43.4%, 73.7%, 0%, 61.2%)
CIE-LABlab(17.83, 31.68, -37.71)
CIE-LCHlch(17.83, 49.25, 310.03°)
OKLaboklab(30.56% 0.0561 -0.1077)
OKLCHoklch(30.56% 0.121 297.5)
XYZxyz(4.2518, 2.4803, 12.0567)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A63 #45631A
analogous
#1A2063 #381A63 #5D1A63
triadic
#381A63 #63381A #1A6338
tetradic
#381A63 #631A20 #45631A #1A635D
square
#381A63 #631A20 #45631A #1A635D
split-complementary
#381A63 #635D1A #20631A
monochromatic
#0E0618 #1D0D33 #381A63 #532793 #6F33C4

Accessibility & contrast

On white

14.04
#381A63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#381A63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A63
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A63#FFFFFF#000000##FFFFFF
##381A631.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C65
Deuteranopia (green-blind)
#002B62
Tritanopia (blue-blind)
#2D2C3C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #381a63;
/* rgb */ color: rgb(56, 26, 99);
/* oklch */ color: oklch(30.6% 0.121 297.5);
Tailwind
colors: {
  custom: {
    50: '#735990',
    500: '#381a63',
    950: '#000000',
  },
}
SCSS
$custom: #381a63;
$custom-light: #735990;
$custom-dark: #000000;
JSON
{
  "hex": "#381a63",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 99
  },
  "hsl": {
    "h": 264.658,
    "s": 58.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.30561,
    "c": 0.12144,
    "h": 297.5
  },
  "luminance": 0.0248
}

Semantic roles & 50–950 ramp

primary
#381A63
secondary
#749940
accent
#E246A2
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #381A63

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

Preview Lab → · Contrast checker → · Palette generator →

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