#38114D#38114D

#38114D is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.107 H 311.0°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#38114D
RGBrgb(56, 17, 77)
HSLhsl(279, 64%, 18%)
HSVhsv(279, 78%, 30%)
CMYKcmyk(27.3%, 77.9%, 0%, 69.8%)
CIE-LABlab(14.27, 30.47, -28.66)
CIE-LCHlch(14.27, 41.83, 316.74°)
OKLaboklab(27.45% 0.0705 -0.0811)
OKLCHoklch(27.45% 0.107 311)
XYZxyz(3.1706, 1.7775, 7.1958)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38114D #264D11
analogous
#1A114D #38114D #4D1144
triadic
#38114D #4D3811 #114D38
tetradic
#38114D #4D1A11 #264D11 #11444D
square
#38114D #4D1A11 #264D11 #11444D
split-complementary
#38114D #444D11 #114D1A
monochromatic
#120619 #14061B #38114D #5C1C7F #8127B1

Accessibility & contrast

On white

15.49
#38114D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#38114D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38114D
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38114D#FFFFFF#000000##FFFFFF
##38114D1.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224F
Deuteranopia (green-blind)
#08254C
Tritanopia (blue-blind)
#351E2D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #38114d;
/* rgb */ color: rgb(56, 17, 77);
/* oklch */ color: oklch(27.4% 0.107 311.0);
Tailwind
colors: {
  custom: {
    50: '#71537f',
    500: '#38114d',
    950: '#000000',
  },
}
SCSS
$custom: #38114d;
$custom-light: #71537f;
$custom-dark: #000000;
JSON
{
  "hex": "#38114d",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 77
  },
  "hsl": {
    "h": 279,
    "s": 63.83,
    "l": 18.431
  },
  "oklch": {
    "l": 0.27446,
    "c": 0.10743,
    "h": 311
  },
  "luminance": 0.01777
}

Semantic roles & 50–950 ramp

primary
#38114D
secondary
#508633
accent
#E7417B
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #38114D

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

Preview Lab → · Contrast checker → · Palette generator →

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