#38286E#38286E

#38286E is a dark, moderate violet. Relative luminance 0.035; OKLCH L 33.8% C 0.116 H 289.2°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#38286E
RGBrgb(56, 40, 110)
HSLhsl(254, 47%, 29%)
HSVhsv(254, 64%, 43%)
CMYKcmyk(49.1%, 63.6%, 0%, 56.9%)
CIE-LABlab(21.89, 26.55, -38.31)
CIE-LCHlch(21.89, 46.61, 304.72°)
OKLaboklab(33.78% 0.0381 -0.1095)
OKLCHoklch(33.78% 0.116 289.2)
XYZxyz(5.2033, 3.4839, 15.1471)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38286E #5E6E28
analogous
#283B6E #38286E #5B286E
triadic
#38286E #6E3828 #286E38
tetradic
#38286E #6E283B #5E6E28 #286E5B
square
#38286E #6E283B #5E6E28 #286E5B
split-complementary
#38286E #6E5B28 #3B6E28
monochromatic
#0B0816 #211841 #38286E #4F389B #6A51C0

Accessibility & contrast

On white

12.38
#38286E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38286E
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38286E#FFFFFF#000000##FFFFFF
##38286E1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003670
Deuteranopia (green-blind)
#00336D
Tritanopia (blue-blind)
#273847
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #38286e;
/* rgb */ color: rgb(56, 40, 110);
/* oklch */ color: oklch(33.8% 0.116 289.2);
Tailwind
colors: {
  custom: {
    50: '#736298',
    500: '#38286e',
    950: '#000000',
  },
}
SCSS
$custom: #38286e;
$custom-light: #736298;
$custom-dark: #000000;
JSON
{
  "hex": "#38286e",
  "rgb": {
    "r": 56,
    "g": 40,
    "b": 110
  },
  "hsl": {
    "h": 253.714,
    "s": 46.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3378,
    "c": 0.11593,
    "h": 289.2
  },
  "luminance": 0.03484
}

Semantic roles & 50–950 ramp

primary
#38286E
secondary
#8EA051
accent
#D651B8
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #38286E

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

Preview Lab → · Contrast checker → · Palette generator →

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