#381A62#381A62

#381A62 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.5% C 0.120 H 297.9°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#381A62
RGBrgb(56, 26, 98)
HSLhsl(265, 58%, 24%)
HSVhsv(265, 73%, 38%)
CMYKcmyk(42.9%, 73.5%, 0%, 61.6%)
CIE-LABlab(17.74, 31.39, -37.19)
CIE-LCHlch(17.74, 48.67, 310.16°)
OKLaboklab(30.47% 0.0563 -0.1062)
OKLCHoklch(30.47% 0.12 297.9)
XYZxyz(4.2043, 2.4613, 11.8065)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A62 #44621A
analogous
#1A2062 #381A62 #5C1A62
triadic
#381A62 #62381A #1A6238
tetradic
#381A62 #621A20 #44621A #1A625C
square
#381A62 #621A20 #44621A #1A625C
split-complementary
#381A62 #625C1A #20621A
monochromatic
#0E0618 #1C0D32 #381A62 #542792 #6F34C3

Accessibility & contrast

On white

14.07
#381A62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#381A62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A62
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A62#FFFFFF#000000##FFFFFF
##381A621.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C64
Deuteranopia (green-blind)
#002B61
Tritanopia (blue-blind)
#2E2B3B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #381a62;
/* rgb */ color: rgb(56, 26, 98);
/* oklch */ color: oklch(30.5% 0.120 297.9);
Tailwind
colors: {
  custom: {
    50: '#73598f',
    500: '#381a62',
    950: '#000000',
  },
}
SCSS
$custom: #381a62;
$custom-light: #73598f;
$custom-dark: #000000;
JSON
{
  "hex": "#381a62",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 98
  },
  "hsl": {
    "h": 265,
    "s": 58.065,
    "l": 24.314
  },
  "oklch": {
    "l": 0.30472,
    "c": 0.12017,
    "h": 297.9
  },
  "luminance": 0.02461
}

Semantic roles & 50–950 ramp

primary
#381A62
secondary
#739840
accent
#E147A1
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #381A62

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

Preview Lab → · Contrast checker → · Palette generator →

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