#38134C#38134C

#38134C is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.103 H 311.2°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#38134C
RGBrgb(56, 19, 76)
HSLhsl(279, 60%, 19%)
HSVhsv(279, 75%, 30%)
CMYKcmyk(26.3%, 75%, 0%, 70.2%)
CIE-LABlab(14.56, 29.19, -27.52)
CIE-LCHlch(14.56, 40.11, 316.69°)
OKLaboklab(27.63% 0.0681 -0.0777)
OKLCHoklch(27.63% 0.103 311.2)
XYZxyz(3.1680, 1.8284, 7.0221)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38134C #274C13
analogous
#1B134C #38134C #4C1343
triadic
#38134C #4C3813 #134C38
tetradic
#38134C #4C1B13 #274C13 #13434C
square
#38134C #4C1B13 #274C13 #13434C
split-complementary
#38134C #434C13 #134C1B
monochromatic
#120618 #14071B #38134C #5C1F7D #802BAE

Accessibility & contrast

On white

15.38
#38134C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#38134C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38134C
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38134C#FFFFFF#000000##FFFFFF
##38134C1.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234E
Deuteranopia (green-blind)
#0C254B
Tritanopia (blue-blind)
#351F2D
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #38134c;
/* rgb */ color: rgb(56, 19, 76);
/* oklch */ color: oklch(27.6% 0.103 311.2);
Tailwind
colors: {
  custom: {
    50: '#71547e',
    500: '#38134c',
    950: '#000000',
  },
}
SCSS
$custom: #38134c;
$custom-light: #71547e;
$custom-dark: #000000;
JSON
{
  "hex": "#38134c",
  "rgb": {
    "r": 56,
    "g": 19,
    "b": 76
  },
  "hsl": {
    "h": 278.947,
    "s": 60,
    "l": 18.627
  },
  "oklch": {
    "l": 0.27625,
    "c": 0.10334,
    "h": 311.2
  },
  "luminance": 0.01828
}

Semantic roles & 50–950 ramp

primary
#38134C
secondary
#528536
accent
#E3457C
background
#F7F4F7
surface
#EDE8EE
border
#C8C4C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #38134C

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

Preview Lab → · Contrast checker → · Palette generator →

#38134C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva