#381F64#381F64

#381F64 is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.4% C 0.116 H 295.7°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#381F64
RGBrgb(56, 31, 100)
HSLhsl(262, 53%, 26%)
HSVhsv(262, 69%, 39%)
CMYKcmyk(44%, 69%, 0%, 60.8%)
CIE-LABlab(18.97, 29.06, -36.51)
CIE-LCHlch(18.97, 46.67, 308.52°)
OKLaboklab(31.41% 0.05 -0.1042)
OKLCHoklch(31.41% 0.116 295.7)
XYZxyz(4.4205, 2.7407, 12.3502)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F64 #4B641F
analogous
#1F2864 #381F64 #5A1F64
triadic
#381F64 #64381F #1F6438
tetradic
#381F64 #641F28 #4B641F #1F645A
square
#381F64 #641F28 #4B641F #1F645A
split-complementary
#381F64 #645A1F #28641F
monochromatic
#0D0717 #1E1135 #381F64 #522D93 #6C3CC1

Accessibility & contrast

On white

13.56
#381F64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#381F64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F64
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F64#FFFFFF#000000##FFFFFF
##381F641.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F66
Deuteranopia (green-blind)
#002D63
Tritanopia (blue-blind)
#2D2F3E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #381f64;
/* rgb */ color: rgb(56, 31, 100);
/* oklch */ color: oklch(31.4% 0.116 295.7);
Tailwind
colors: {
  custom: {
    50: '#735c91',
    500: '#381f64',
    950: '#000000',
  },
}
SCSS
$custom: #381f64;
$custom-light: #735c91;
$custom-dark: #000000;
JSON
{
  "hex": "#381f64",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 100
  },
  "hsl": {
    "h": 261.739,
    "s": 52.672,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31409,
    "c": 0.11559,
    "h": 295.7
  },
  "luminance": 0.02741
}

Semantic roles & 50–950 ramp

primary
#381F64
secondary
#7B9846
accent
#DC4CA8
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040D
muted
#7B797D

Preview Lab

Preview with #381F64

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

Preview Lab → · Contrast checker → · Palette generator →

#381F64 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva