#38136D#38136D

#38136D is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.142 H 295.2°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#38136D
RGBrgb(56, 19, 109)
HSLhsl(265, 70%, 25%)
HSVhsv(265, 83%, 43%)
CMYKcmyk(48.6%, 82.6%, 0%, 57.3%)
CIE-LABlab(17.51, 38.08, -44.80)
CIE-LCHlch(17.51, 58.80, 310.37°)
OKLaboklab(30.62% 0.0604 -0.1284)
OKLCHoklch(30.62% 0.142 295.2)
XYZxyz(4.6233, 2.4105, 14.6867)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38136D #486D13
analogous
#131B6D #38136D #65136D
triadic
#38136D #6D3813 #136D38
tetradic
#38136D #6D131B #486D13 #136D65
square
#38136D #6D131B #486D13 #136D65
split-complementary
#38136D #6D6513 #1B6D13
monochromatic
#0D051A #1D0A39 #38136D #531CA1 #6E25D5

Accessibility & contrast

On white

14.17
#38136D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#38136D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38136D
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38136D#FFFFFF#000000##FFFFFF
##38136D1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6F
Deuteranopia (green-blind)
#002A6B
Tritanopia (blue-blind)
#292C40
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #38136d;
/* rgb */ color: rgb(56, 19, 109);
/* oklch */ color: oklch(30.6% 0.142 295.2);
Tailwind
colors: {
  custom: {
    50: '#755698',
    500: '#38136d',
    950: '#000000',
  },
}
SCSS
$custom: #38136d;
$custom-light: #755698;
$custom-dark: #000000;
JSON
{
  "hex": "#38136d",
  "rgb": {
    "r": 56,
    "g": 19,
    "b": 109
  },
  "hsl": {
    "h": 264.667,
    "s": 70.313,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30623,
    "c": 0.14192,
    "h": 295.2
  },
  "luminance": 0.02411
}

Semantic roles & 50–950 ramp

primary
#38136D
secondary
#78A438
accent
#ED3BA4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #38136D

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

Preview Lab → · Contrast checker → · Palette generator →

#38136D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva