#381F7B#381F7B

#381F7B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.5% C 0.146 H 288.4°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#381F7B
RGBrgb(56, 31, 123)
HSLhsl(256, 60%, 30%)
HSVhsv(256, 75%, 48%)
CMYKcmyk(54.5%, 74.8%, 0%, 51.8%)
CIE-LABlab(21.02, 36.08, -48.06)
CIE-LCHlch(21.02, 60.09, 306.90°)
OKLaboklab(33.51% 0.0459 -0.1381)
OKLCHoklch(33.51% 0.146 288.4)
XYZxyz(5.6950, 3.2505, 19.0624)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F7B #627B1F
analogous
#1F347B #381F7B #661F7B
triadic
#381F7B #7B381F #1F7B38
tetradic
#381F7B #7B1F34 #627B1F #1F7B66
square
#381F7B #7B1F34 #627B1F #1F7B66
split-complementary
#381F7B #7B661F #347B1F
monochromatic
#0B0619 #22134A #381F7B #4E2BAC #6A44D0

Accessibility & contrast

On white

12.73
#381F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#381F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F7B
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F7B#FFFFFF#000000##FFFFFF
##381F7B1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#1E384B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #381f7b;
/* rgb */ color: rgb(56, 31, 123);
/* oklch */ color: oklch(33.5% 0.146 288.4);
Tailwind
colors: {
  custom: {
    50: '#765da2',
    500: '#381f7b',
    950: '#000000',
  },
}
SCSS
$custom: #381f7b;
$custom-light: #765da2;
$custom-dark: #000000;
JSON
{
  "hex": "#381f7b",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 256.304,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33508,
    "c": 0.14551,
    "h": 288.4
  },
  "luminance": 0.03251
}

Semantic roles & 50–950 ramp

primary
#381F7B
secondary
#92AE48
accent
#E345B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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