#382A7C#382A7C

#382A7C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.3% C 0.133 H 285.2°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#382A7C
RGBrgb(56, 42, 124)
HSLhsl(250, 49%, 33%)
HSVhsv(250, 66%, 49%)
CMYKcmyk(54.8%, 66.1%, 0%, 51.4%)
CIE-LABlab(23.51, 29.84, -44.62)
CIE-LCHlch(23.51, 53.68, 303.77°)
OKLaboklab(35.32% 0.0347 -0.128)
OKLCHoklch(35.32% 0.133 285.2)
XYZxyz(6.0958, 3.9516, 19.5064)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382A7C #6E7C2A
analogous
#2A457C #382A7C #612A7C
triadic
#382A7C #7C382A #2A7C38
tetradic
#382A7C #7C2A45 #6E7C2A #2A7C61
square
#382A7C #7C2A45 #6E7C2A #2A7C61
split-complementary
#382A7C #7C612A #457C2A
monochromatic
#0F0B21 #231B4E #382A7C #4D39AA #6C59C7

Accessibility & contrast

On white

11.73
#382A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#382A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382A7C
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382A7C#FFFFFF#000000##FFFFFF
##382A7C1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#1C3E4F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #382a7c;
/* rgb */ color: rgb(56, 42, 124);
/* oklch */ color: oklch(35.3% 0.133 285.2);
Tailwind
colors: {
  custom: {
    50: '#7664a3',
    500: '#382a7c',
    950: '#000000',
  },
}
SCSS
$custom: #382a7c;
$custom-light: #7664a3;
$custom-dark: #000000;
JSON
{
  "hex": "#382a7c",
  "rgb": {
    "r": 56,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 250.244,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35324,
    "c": 0.13268,
    "h": 285.2
  },
  "luminance": 0.03952
}

Semantic roles & 50–950 ramp

primary
#382A7C
secondary
#9EAD55
accent
#D94FC1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09050F
muted
#7B7A7F

Preview Lab

Preview with #382A7C

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

Preview Lab → · Contrast checker → · Palette generator →

#382A7C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva