#382279#382279

#382279 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.8% C 0.139 H 288.2°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#382279
RGBrgb(56, 34, 121)
HSLhsl(255, 56%, 30%)
HSVhsv(255, 72%, 47%)
CMYKcmyk(53.7%, 71.9%, 0%, 52.5%)
CIE-LABlab(21.45, 33.75, -46.08)
CIE-LCHlch(21.45, 57.12, 306.22°)
OKLaboklab(33.76% 0.0434 -0.1323)
OKLCHoklch(33.76% 0.139 288.2)
XYZxyz(5.6531, 3.3650, 18.4371)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382279 #637922
analogous
#223879 #382279 #632279
triadic
#382279 #793822 #227938
tetradic
#382279 #792238 #637922 #227963
square
#382279 #792238 #637922 #227963
split-complementary
#382279 #796322 #387922
monochromatic
#0C0719 #221549 #382279 #4E2FA9 #6A49CC

Accessibility & contrast

On white

12.55
#382279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#382279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382279
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382279#FFFFFF#000000##FFFFFF
##3822791.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#20384A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #382279;
/* rgb */ color: rgb(56, 34, 121);
/* oklch */ color: oklch(33.8% 0.139 288.2);
Tailwind
colors: {
  custom: {
    50: '#765fa0',
    500: '#382279',
    950: '#000000',
  },
}
SCSS
$custom: #382279;
$custom-light: #765fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#382279",
  "rgb": {
    "r": 56,
    "g": 34,
    "b": 121
  },
  "hsl": {
    "h": 255.172,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33757,
    "c": 0.13925,
    "h": 288.2
  },
  "luminance": 0.03365
}

Semantic roles & 50–950 ramp

primary
#382279
secondary
#93AC4B
accent
#DF48B9
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09050F
muted
#7B797F

Preview Lab

Preview with #382279

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

Preview Lab → · Contrast checker → · Palette generator →

#382279 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva