#381970#381970

#381970 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.139 H 293.0°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#381970
RGBrgb(56, 25, 112)
HSLhsl(261, 64%, 27%)
HSVhsv(261, 78%, 44%)
CMYKcmyk(50%, 77.7%, 0%, 56.1%)
CIE-LABlab(18.82, 36.01, -44.59)
CIE-LCHlch(18.82, 57.32, 308.93°)
OKLaboklab(31.63% 0.0542 -0.1279)
OKLCHoklch(31.63% 0.139 293)
XYZxyz(4.9023, 2.7057, 15.5900)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381970 #517019
analogous
#192670 #381970 #641970
triadic
#381970 #703819 #197038
tetradic
#381970 #701926 #517019 #197064
square
#381970 #701926 #517019 #197064
split-complementary
#381970 #706419 #267019
monochromatic
#0D0619 #1F0E3E #381970 #5124A2 #6B32D1

Accessibility & contrast

On white

13.63
#381970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#381970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381970
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381970#FFFFFF#000000##FFFFFF
##3819701.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F72
Deuteranopia (green-blind)
#002C6E
Tritanopia (blue-blind)
#273043
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #381970;
/* rgb */ color: rgb(56, 25, 112);
/* oklch */ color: oklch(31.6% 0.139 293.0);
Tailwind
colors: {
  custom: {
    50: '#75599a',
    500: '#381970',
    950: '#000000',
  },
}
SCSS
$custom: #381970;
$custom-light: #75599a;
$custom-dark: #000000;
JSON
{
  "hex": "#381970",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 261.379,
    "s": 63.504,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31634,
    "c": 0.13889,
    "h": 293
  },
  "luminance": 0.02706
}

Semantic roles & 50–950 ramp

primary
#381970
secondary
#81A540
accent
#E741AC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381970

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

Preview Lab → · Contrast checker → · Palette generator →

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