#38286F#38286F

#38286F is a dark, moderate violet. Relative luminance 0.035; OKLCH L 33.9% C 0.117 H 288.9°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#38286F
RGBrgb(56, 40, 111)
HSLhsl(254, 47%, 30%)
HSVhsv(254, 64%, 44%)
CMYKcmyk(49.5%, 64%, 0%, 56.5%)
CIE-LABlab(21.97, 26.87, -38.83)
CIE-LCHlch(21.97, 47.22, 304.69°)
OKLaboklab(33.86% 0.0381 -0.111)
OKLCHoklch(33.86% 0.117 288.9)
XYZxyz(5.2581, 3.5058, 15.4355)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38286F #5F6F28
analogous
#283C6F #38286F #5C286F
triadic
#38286F #6F3828 #286F38
tetradic
#38286F #6F283C #5F6F28 #286F5C
square
#38286F #6F283C #5F6F28 #286F5C
split-complementary
#38286F #6F5C28 #3C6F28
monochromatic
#0B0816 #211842 #38286F #4F389C #6A51C0

Accessibility & contrast

On white

12.34
#38286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#38286F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38286F
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38286F#FFFFFF#000000##FFFFFF
##38286F1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003671
Deuteranopia (green-blind)
#00336E
Tritanopia (blue-blind)
#263847
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #38286f;
/* rgb */ color: rgb(56, 40, 111);
/* oklch */ color: oklch(33.9% 0.117 288.9);
Tailwind
colors: {
  custom: {
    50: '#746399',
    500: '#38286f',
    950: '#000000',
  },
}
SCSS
$custom: #38286f;
$custom-light: #746399;
$custom-dark: #000000;
JSON
{
  "hex": "#38286f",
  "rgb": {
    "r": 56,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 253.521,
    "s": 47.02,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33863,
    "c": 0.11735,
    "h": 288.9
  },
  "luminance": 0.03506
}

Semantic roles & 50–950 ramp

primary
#38286F
secondary
#8FA151
accent
#D751B9
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #38286F

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

Preview Lab → · Contrast checker → · Palette generator →

#38286F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva