#38197F#38197F

#38197F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.157 H 288.5°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#38197F
RGBrgb(56, 25, 127)
HSLhsl(258, 67%, 30%)
HSVhsv(258, 80%, 50%)
CMYKcmyk(55.9%, 80.3%, 0%, 50.2%)
CIE-LABlab(20.31, 40.41, -51.76)
CIE-LCHlch(20.31, 65.67, 307.98°)
OKLaboklab(33.13% 0.0498 -0.1489)
OKLCHoklch(33.13% 0.157 288.5)
XYZxyz(5.8082, 3.0680, 20.3607)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38197F #607F19
analogous
#192D7F #38197F #6B197F
triadic
#38197F #7F3819 #197F38
tetradic
#38197F #7F192D #607F19 #197F6B
square
#38197F #7F192D #607F19 #197F6B
split-complementary
#38197F #7F6B19 #2D7F19
monochromatic
#0B051A #210F4C #38197F #4F23B2 #6A3AD8

Accessibility & contrast

On white

13.01
#38197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#38197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38197F
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38197F#FFFFFF#000000##FFFFFF
##38197F1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#1B364C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #38197f;
/* rgb */ color: rgb(56, 25, 127);
/* oklch */ color: oklch(33.1% 0.157 288.5);
Tailwind
colors: {
  custom: {
    50: '#785aa5',
    500: '#38197f',
    950: '#000000',
  },
}
SCSS
$custom: #38197f;
$custom-light: #785aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#38197f",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 258.235,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33132,
    "c": 0.15698,
    "h": 288.5
  },
  "luminance": 0.03068
}

Semantic roles & 50–950 ramp

primary
#38197F
secondary
#90B341
accent
#EA3EB6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #38197F

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

Preview Lab → · Contrast checker → · Palette generator →

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