#38124F#38124F

#38124F is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.7% C 0.108 H 309.6°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#38124F
RGBrgb(56, 18, 79)
HSLhsl(277, 63%, 19%)
HSVhsv(277, 77%, 31%)
CMYKcmyk(29.1%, 77.2%, 0%, 69%)
CIE-LABlab(14.61, 30.47, -29.49)
CIE-LCHlch(14.61, 42.41, 315.94°)
OKLaboklab(27.74% 0.069 -0.0835)
OKLCHoklch(27.74% 0.108 309.6)
XYZxyz(3.2582, 1.8379, 7.5787)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38124F #294F12
analogous
#1A124F #38124F #4F1248
triadic
#38124F #4F3812 #124F38
tetradic
#38124F #4F1A12 #294F12 #12484F
square
#38124F #4F1A12 #294F12 #12484F
split-complementary
#38124F #484F12 #124F1A
monochromatic
#120619 #15071D #38124F #5B1D81 #7F29B3

Accessibility & contrast

On white

15.36
#38124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#38124F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38124F
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38124F#FFFFFF#000000##FFFFFF
##38124F1.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#06254E
Tritanopia (blue-blind)
#351F2F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #38124f;
/* rgb */ color: rgb(56, 18, 79);
/* oklch */ color: oklch(27.7% 0.108 309.6);
Tailwind
colors: {
  custom: {
    50: '#715481',
    500: '#38124f',
    950: '#000000',
  },
}
SCSS
$custom: #38124f;
$custom-light: #715481;
$custom-dark: #000000;
JSON
{
  "hex": "#38124f",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 277.377,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.27738,
    "c": 0.10831,
    "h": 309.6
  },
  "luminance": 0.01838
}

Semantic roles & 50–950 ramp

primary
#38124F
secondary
#548835
accent
#E64280
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #38124F

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

Preview Lab → · Contrast checker → · Palette generator →

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