#381850#381850

#381850 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.7% C 0.100 H 307.5°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#381850
RGBrgb(56, 24, 80)
HSLhsl(274, 54%, 20%)
HSVhsv(274, 70%, 31%)
CMYKcmyk(30%, 70%, 0%, 68.6%)
CIE-LABlab(15.87, 27.47, -28.15)
CIE-LCHlch(15.87, 39.33, 314.30°)
OKLaboklab(28.66% 0.0611 -0.0796)
OKLCHoklch(28.66% 0.1 307.5)
XYZxyz(3.4052, 2.0733, 7.8087)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381850 #305018
analogous
#1C1850 #381850 #50184C
triadic
#381850 #503818 #185038
tetradic
#381850 #501C18 #305018 #184C50
square
#381850 #501C18 #305018 #184C50
split-complementary
#381850 #4C5018 #18501C
monochromatic
#100718 #170A21 #381850 #59267F #7A34AE

Accessibility & contrast

On white

14.85
#381850 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#381850 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381850
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381850#FFFFFF#000000##FFFFFF
##3818501.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002652
Deuteranopia (green-blind)
#0D284F
Tritanopia (blue-blind)
#342431
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #381850;
/* rgb */ color: rgb(56, 24, 80);
/* oklch */ color: oklch(28.7% 0.100 307.5);
Tailwind
colors: {
  custom: {
    50: '#715781',
    500: '#381850',
    950: '#000000',
  },
}
SCSS
$custom: #381850;
$custom-light: #715781;
$custom-dark: #000000;
JSON
{
  "hex": "#381850",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 80
  },
  "hsl": {
    "h": 274.286,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28663,
    "c": 0.10034,
    "h": 307.5
  },
  "luminance": 0.02073
}

Semantic roles & 50–950 ramp

primary
#381850
secondary
#5D873D
accent
#DD4B89
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #381850

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

Preview Lab → · Contrast checker → · Palette generator →

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