#381B8F#381B8F

#381B8F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.174 H 284.4°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#381B8F
RGBrgb(56, 27, 143)
HSLhsl(255, 68%, 33%)
HSVhsv(255, 81%, 56%)
CMYKcmyk(60.8%, 81.1%, 0%, 43.9%)
CIE-LABlab(22.33, 44.17, -58.49)
CIE-LCHlch(22.33, 73.29, 307.06°)
OKLaboklab(35.04% 0.0432 -0.1686)
OKLCHoklch(35.04% 0.174 284.4)
XYZxyz(6.9792, 3.6073, 26.3098)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B8F #728F1B
analogous
#1B388F #381B8F #721B8F
triadic
#381B8F #8F381B #1B8F38
tetradic
#381B8F #8F1B38 #728F1B #1B8F72
square
#381B8F #8F1B38 #728F1B #1B8F72
split-complementary
#381B8F #8F721B #388F1B
monochromatic
#100828 #24115C #381B8F #4C25C2 #6D48DC

Accessibility & contrast

On white

12.20
#381B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381B8F
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B8F#FFFFFF#000000##FFFFFF
##381B8F1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #381b8f;
/* rgb */ color: rgb(56, 27, 143);
/* oklch */ color: oklch(35.0% 0.174 284.4);
Tailwind
colors: {
  custom: {
    50: '#7a5cb1',
    500: '#381b8f',
    950: '#000000',
  },
}
SCSS
$custom: #381b8f;
$custom-light: #7a5cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#381b8f",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 143
  },
  "hsl": {
    "h": 255,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35038,
    "c": 0.17403,
    "h": 284.4
  },
  "luminance": 0.03608
}

Semantic roles & 50–950 ramp

primary
#381B8F
secondary
#A1BE48
accent
#EB3DBF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #381B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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