#381F8B#381F8B

#381F8B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.165 H 284.6°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#381F8B
RGBrgb(56, 31, 139)
HSLhsl(254, 64%, 33%)
HSVhsv(254, 78%, 55%)
CMYKcmyk(59.7%, 77.7%, 0%, 45.5%)
CIE-LABlab(22.60, 40.98, -55.55)
CIE-LCHlch(22.60, 69.03, 306.42°)
OKLaboklab(35.1% 0.0417 -0.16)
OKLCHoklch(35.1% 0.165 284.6)
XYZxyz(6.7797, 3.6844, 24.7750)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F8B #728B1F
analogous
#1F3C8B #381F8B #6E1F8B
triadic
#381F8B #8B381F #1F8B38
tetradic
#381F8B #8B1F3C #728B1F #1F8B6E
square
#381F8B #8B1F3C #728B1F #1F8B6E
split-complementary
#381F8B #8B6E1F #3C8B1F
monochromatic
#100927 #241459 #381F8B #4C2ABD #6D4DD7

Accessibility & contrast

On white

12.09
#381F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#381F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F8B
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F8B#FFFFFF#000000##FFFFFF
##381F8B1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#083E54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #381f8b;
/* rgb */ color: rgb(56, 31, 139);
/* oklch */ color: oklch(35.1% 0.165 284.6);
Tailwind
colors: {
  custom: {
    50: '#795eae',
    500: '#381f8b',
    950: '#000000',
  },
}
SCSS
$custom: #381f8b;
$custom-light: #795eae;
$custom-dark: #000000;
JSON
{
  "hex": "#381f8b",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 253.889,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35102,
    "c": 0.16539,
    "h": 284.6
  },
  "luminance": 0.03685
}

Semantic roles & 50–950 ramp

primary
#381F8B
secondary
#A1BA4C
accent
#E741C0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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