#381870#381870

#381870 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.140 H 293.2°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#381870
RGBrgb(56, 24, 112)
HSLhsl(262, 65%, 27%)
HSVhsv(262, 79%, 44%)
CMYKcmyk(50%, 78.6%, 0%, 56.1%)
CIE-LABlab(18.64, 36.53, -44.88)
CIE-LCHlch(18.64, 57.87, 309.14°)
OKLaboklab(31.51% 0.0551 -0.1288)
OKLCHoklch(31.51% 0.14 293.2)
XYZxyz(4.8813, 2.6637, 15.5830)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381870 #507018
analogous
#182470 #381870 #641870
triadic
#381870 #703818 #187038
tetradic
#381870 #701824 #507018 #187064
square
#381870 #701824 #507018 #187064
split-complementary
#381870 #706418 #247018
monochromatic
#0D0519 #1F0D3E #381870 #5123A2 #6B30D3

Accessibility & contrast

On white

13.70
#381870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#381870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381870
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381870#FFFFFF#000000##FFFFFF
##3818701.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381870;
/* rgb */ color: rgb(56, 24, 112);
/* oklch */ color: oklch(31.5% 0.140 293.2);
Tailwind
colors: {
  custom: {
    50: '#75599a',
    500: '#381870',
    950: '#000000',
  },
}
SCSS
$custom: #381870;
$custom-light: #75599a;
$custom-dark: #000000;
JSON
{
  "hex": "#381870",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 261.818,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31507,
    "c": 0.14005,
    "h": 293.2
  },
  "luminance": 0.02664
}

Semantic roles & 50–950 ramp

primary
#381870
secondary
#80A53E
accent
#E840AB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381870

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

Preview Lab → · Contrast checker → · Palette generator →

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