#381F88#381F88

#381F88 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.162 H 285.3°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#381F88
RGBrgb(56, 31, 136)
HSLhsl(254, 63%, 33%)
HSVhsv(254, 77%, 53%)
CMYKcmyk(58.8%, 77.2%, 0%, 46.7%)
CIE-LABlab(22.29, 40.07, -54.17)
CIE-LCHlch(22.29, 67.38, 306.49°)
OKLaboklab(34.8% 0.0426 -0.156)
OKLCHoklch(34.8% 0.162 285.3)
XYZxyz(6.5635, 3.5979, 23.6364)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F88 #6F881F
analogous
#1F3A88 #381F88 #6D1F88
triadic
#381F88 #88381F #1F8838
tetradic
#381F88 #881F3A #6F881F #1F886D
square
#381F88 #881F3A #6F881F #1F886D
split-complementary
#381F88 #886D1F #3A881F
monochromatic
#0F0824 #231456 #381F88 #4D2ABA #6C4BD6

Accessibility & contrast

On white

12.21
#381F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#381F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F88
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F88#FFFFFF#000000##FFFFFF
##381F881.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003286
Tritanopia (blue-blind)
#0F3D52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #381f88;
/* rgb */ color: rgb(56, 31, 136);
/* oklch */ color: oklch(34.8% 0.162 285.3);
Tailwind
colors: {
  custom: {
    50: '#795eac',
    500: '#381f88',
    950: '#000000',
  },
}
SCSS
$custom: #381f88;
$custom-light: #795eac;
$custom-dark: #000000;
JSON
{
  "hex": "#381f88",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 254.286,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34796,
    "c": 0.16172,
    "h": 285.3
  },
  "luminance": 0.03598
}

Semantic roles & 50–950 ramp

primary
#381F88
secondary
#9EB94A
accent
#E642BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381F88

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

Preview Lab → · Contrast checker → · Palette generator →

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