#38124C#38124C

#38124C is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.105 H 311.5°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#38124C
RGBrgb(56, 18, 76)
HSLhsl(279, 62%, 18%)
HSVhsv(279, 76%, 30%)
CMYKcmyk(26.3%, 76.3%, 0%, 70.2%)
CIE-LABlab(14.37, 29.71, -27.82)
CIE-LCHlch(14.37, 40.70, 316.89°)
OKLaboklab(27.49% 0.0694 -0.0786)
OKLCHoklch(27.49% 0.105 311.5)
XYZxyz(3.1515, 1.7952, 7.0166)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38124C #264C12
analogous
#1B124C #38124C #4C1243
triadic
#38124C #4C3812 #124C38
tetradic
#38124C #4C1B12 #264C12 #12434C
square
#38124C #4C1B12 #264C12 #12434C
split-complementary
#38124C #434C12 #124C1B
monochromatic
#120619 #14061B #38124C #5C1E7D #8129AF

Accessibility & contrast

On white

15.45
#38124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#38124C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38124C
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38124C#FFFFFF#000000##FFFFFF
##38124C1.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234E
Deuteranopia (green-blind)
#0B254B
Tritanopia (blue-blind)
#361E2D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #38124c;
/* rgb */ color: rgb(56, 18, 76);
/* oklch */ color: oklch(27.5% 0.105 311.5);
Tailwind
colors: {
  custom: {
    50: '#71537e',
    500: '#38124c',
    950: '#000000',
  },
}
SCSS
$custom: #38124c;
$custom-light: #71537e;
$custom-dark: #000000;
JSON
{
  "hex": "#38124c",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 279.31,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.27492,
    "c": 0.10483,
    "h": 311.5
  },
  "luminance": 0.01795
}

Semantic roles & 50–950 ramp

primary
#38124C
secondary
#508535
accent
#E5437B
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #38124C

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

Preview Lab → · Contrast checker → · Palette generator →

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