#381174#381174

#381174 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.152 H 293.0°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#381174
RGBrgb(56, 17, 116)
HSLhsl(264, 74%, 26%)
HSVhsv(264, 85%, 45%)
CMYKcmyk(51.7%, 85.3%, 0%, 54.5%)
CIE-LABlab(17.93, 40.88, -48.64)
CIE-LCHlch(17.93, 63.54, 310.05°)
OKLaboklab(31.13% 0.0594 -0.1397)
OKLCHoklch(31.13% 0.152 293)
XYZxyz(4.9828, 2.5024, 16.7401)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381174 #4D7411
analogous
#111C74 #381174 #691174
triadic
#381174 #743811 #117438
tetradic
#381174 #74111C #4D7411 #117469
square
#381174 #74111C #4D7411 #117469
split-complementary
#381174 #746911 #1C7411
monochromatic
#0D041B #1E093F #381174 #5219A9 #6C21DE

Accessibility & contrast

On white

13.99
#381174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#381174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381174
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381174#FFFFFF#000000##FFFFFF
##3811741.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002A72
Tritanopia (blue-blind)
#242F44
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #381174;
/* rgb */ color: rgb(56, 17, 116);
/* oklch */ color: oklch(31.1% 0.152 293.0);
Tailwind
colors: {
  custom: {
    50: '#76559d',
    500: '#381174',
    950: '#000000',
  },
}
SCSS
$custom: #381174;
$custom-light: #76559d;
$custom-dark: #000000;
JSON
{
  "hex": "#381174",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 263.636,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31133,
    "c": 0.1518,
    "h": 293
  },
  "luminance": 0.02503
}

Semantic roles & 50–950 ramp

primary
#381174
secondary
#7DAB36
accent
#F137A8
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381174

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

Preview Lab → · Contrast checker → · Palette generator →

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