#38114F#38114F

#38114F is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.110 H 309.8°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#38114F
RGBrgb(56, 17, 79)
HSLhsl(278, 65%, 19%)
HSVhsv(278, 78%, 31%)
CMYKcmyk(29.1%, 78.5%, 0%, 69%)
CIE-LABlab(14.44, 30.97, -29.78)
CIE-LCHlch(14.44, 42.96, 316.13°)
OKLaboklab(27.61% 0.0702 -0.0843)
OKLCHoklch(27.61% 0.11 309.8)
XYZxyz(3.2423, 1.8062, 7.5735)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38114F #284F11
analogous
#19114F #38114F #4F1147
triadic
#38114F #4F3811 #114F38
tetradic
#38114F #4F1911 #284F11 #11474F
square
#38114F #4F1911 #284F11 #11474F
split-complementary
#38114F #474F11 #114F19
monochromatic
#120519 #14061D #38114F #5C1C81 #7F27B4

Accessibility & contrast

On white

15.43
#38114F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38114F
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38114F#FFFFFF#000000##FFFFFF
##38114F1.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#05254E
Tritanopia (blue-blind)
#351F2E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #38114f;
/* rgb */ color: rgb(56, 17, 79);
/* oklch */ color: oklch(27.6% 0.110 309.8);
Tailwind
colors: {
  custom: {
    50: '#715381',
    500: '#38114f',
    950: '#000000',
  },
}
SCSS
$custom: #38114f;
$custom-light: #715381;
$custom-dark: #000000;
JSON
{
  "hex": "#38114f",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 79
  },
  "hsl": {
    "h": 277.742,
    "s": 64.583,
    "l": 18.824
  },
  "oklch": {
    "l": 0.27612,
    "c": 0.10971,
    "h": 309.8
  },
  "luminance": 0.01806
}

Semantic roles & 50–950 ramp

primary
#38114F
secondary
#538833
accent
#E8407E
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #38114F

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

Preview Lab → · Contrast checker → · Palette generator →

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