#381670#381670

#381670 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.142 H 293.6°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#381670
RGBrgb(56, 22, 112)
HSLhsl(263, 67%, 26%)
HSVhsv(263, 80%, 44%)
CMYKcmyk(50%, 80.4%, 0%, 56.1%)
CIE-LABlab(18.30, 37.52, -45.45)
CIE-LCHlch(18.30, 58.94, 309.54°)
OKLaboklab(31.26% 0.0569 -0.1304)
OKLCHoklch(31.26% 0.142 293.6)
XYZxyz(4.8416, 2.5843, 15.5698)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381670 #4E7016
analogous
#162170 #381670 #651670
triadic
#381670 #703816 #167038
tetradic
#381670 #701621 #4E7016 #167065
square
#381670 #701621 #4E7016 #167065
split-complementary
#381670 #706516 #217016
monochromatic
#0D051A #1E0C3D #381670 #5220A3 #6B2BD5

Accessibility & contrast

On white

13.84
#381670 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#381670 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381670
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381670#FFFFFF#000000##FFFFFF
##3816701.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E73
Deuteranopia (green-blind)
#002B6E
Tritanopia (blue-blind)
#272F42
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #381670;
/* rgb */ color: rgb(56, 22, 112);
/* oklch */ color: oklch(31.3% 0.142 293.6);
Tailwind
colors: {
  custom: {
    50: '#75589a',
    500: '#381670',
    950: '#000000',
  },
}
SCSS
$custom: #381670;
$custom-light: #75589a;
$custom-dark: #000000;
JSON
{
  "hex": "#381670",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 112
  },
  "hsl": {
    "h": 262.667,
    "s": 67.164,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31263,
    "c": 0.14227,
    "h": 293.6
  },
  "luminance": 0.02584
}

Semantic roles & 50–950 ramp

primary
#381670
secondary
#7EA63C
accent
#EA3EA9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381670

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

Preview Lab → · Contrast checker → · Palette generator →

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