#38149F#38149F

#38149F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 36.1% C 0.198 H 282.0°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#38149F
RGBrgb(56, 20, 159)
HSLhsl(256, 78%, 35%)
HSVhsv(256, 87%, 62%)
CMYKcmyk(64.8%, 87.4%, 0%, 37.6%)
CIE-LABlab(23.15, 51.63, -66.99)
CIE-LCHlch(23.15, 84.58, 307.62°)
OKLaboklab(36.13% 0.041 -0.1932)
OKLCHoklch(36.13% 0.198 282)
XYZxyz(8.1371, 3.8437, 33.1073)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38149F #7B9F14
analogous
#14359F #38149F #7E149F
triadic
#38149F #9F3814 #149F38
tetradic
#38149F #9F1435 #7B9F14 #149F7E
square
#38149F #9F1435 #7B9F14 #149F7E
split-complementary
#38149F #9F7E14 #359F14
monochromatic
#120632 #250D69 #38149F #4B1BD5 #7046E8

Accessibility & contrast

On white

11.87
#38149F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#38149F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38149F
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38149F#FFFFFF#000000##FFFFFF
##38149F1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA3
Deuteranopia (green-blind)
#00329D
Tritanopia (blue-blind)
#00425D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #38149f;
/* rgb */ color: rgb(56, 20, 159);
/* oklch */ color: oklch(36.1% 0.198 282.0);
Tailwind
colors: {
  custom: {
    50: '#7e5abd',
    500: '#38149f',
    950: '#000000',
  },
}
SCSS
$custom: #38149f;
$custom-light: #7e5abd;
$custom-dark: #000000;
JSON
{
  "hex": "#38149f",
  "rgb": {
    "r": 56,
    "g": 20,
    "b": 159
  },
  "hsl": {
    "h": 255.54,
    "s": 77.654,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36132,
    "c": 0.19755,
    "h": 282
  },
  "luminance": 0.03844
}

Semantic roles & 50–950 ramp

primary
#38149F
secondary
#A7C846
accent
#F434C2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #38149F

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

Preview Lab → · Contrast checker → · Palette generator →

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