#38188F#38188F

#38188F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.177 H 284.8°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#38188F
RGBrgb(56, 24, 143)
HSLhsl(256, 71%, 33%)
HSVhsv(256, 83%, 56%)
CMYKcmyk(60.8%, 83.2%, 0%, 43.9%)
CIE-LABlab(21.86, 45.53, -59.26)
CIE-LCHlch(21.86, 74.73, 307.54°)
OKLaboklab(34.71% 0.045 -0.1708)
OKLCHoklch(34.71% 0.177 284.8)
XYZxyz(6.9139, 3.4767, 26.2880)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38188F #6F8F18
analogous
#18348F #38188F #73188F
triadic
#38188F #8F3818 #188F38
tetradic
#38188F #8F1834 #6F8F18 #188F73
square
#38188F #8F1834 #6F8F18 #188F73
split-complementary
#38188F #8F7318 #348F18
monochromatic
#0F0626 #230F5B #38188F #4D21C3 #6C42DF

Accessibility & contrast

On white

12.39
#38188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#38188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38188F
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38188F#FFFFFF#000000##FFFFFF
##38188F1.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #38188f;
/* rgb */ color: rgb(56, 24, 143);
/* oklch */ color: oklch(34.7% 0.177 284.8);
Tailwind
colors: {
  custom: {
    50: '#7b5bb1',
    500: '#38188f',
    950: '#000000',
  },
}
SCSS
$custom: #38188f;
$custom-light: #7b5bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#38188f",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 256.134,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34714,
    "c": 0.17663,
    "h": 284.8
  },
  "luminance": 0.03477
}

Semantic roles & 50–950 ramp

primary
#38188F
secondary
#9EC043
accent
#EE3ABE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #38188F

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

Preview Lab → · Contrast checker → · Palette generator →

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