#38189F#38189F

#38189F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.5% C 0.195 H 281.6°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#38189F
RGBrgb(56, 24, 159)
HSLhsl(254, 74%, 36%)
HSVhsv(254, 85%, 62%)
CMYKcmyk(64.8%, 84.9%, 0%, 37.6%)
CIE-LABlab(23.66, 50.11, -66.14)
CIE-LCHlch(23.66, 82.98, 307.15°)
OKLaboklab(36.48% 0.0393 -0.1908)
OKLCHoklch(36.48% 0.195 281.6)
XYZxyz(8.2136, 3.9966, 33.1328)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38189F #7F9F18
analogous
#183C9F #38189F #7B189F
triadic
#38189F #9F3818 #189F38
tetradic
#38189F #9F183C #7F9F18 #189F7B
square
#38189F #9F183C #7F9F18 #189F7B
split-complementary
#38189F #9F7B18 #3C9F18
monochromatic
#130835 #25106A #38189F #4B20D4 #714DE4

Accessibility & contrast

On white

11.67
#38189F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#38189F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38189F
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38189F#FFFFFF#000000##FFFFFF
##38189F1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#00435E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #38189f;
/* rgb */ color: rgb(56, 24, 159);
/* oklch */ color: oklch(36.5% 0.195 281.6);
Tailwind
colors: {
  custom: {
    50: '#7e5cbd',
    500: '#38189f',
    950: '#000000',
  },
}
SCSS
$custom: #38189f;
$custom-light: #7e5cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#38189f",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 159
  },
  "hsl": {
    "h": 254.222,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36482,
    "c": 0.19484,
    "h": 281.6
  },
  "luminance": 0.03997
}

Semantic roles & 50–950 ramp

primary
#38189F
secondary
#A9C64D
accent
#F037C5
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #38189F

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

Preview Lab → · Contrast checker → · Palette generator →

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