#38197D#38197D

#38197D is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.155 H 289.0°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#38197D
RGBrgb(56, 25, 125)
HSLhsl(259, 67%, 29%)
HSVhsv(259, 80%, 49%)
CMYKcmyk(55.2%, 80%, 0%, 51%)
CIE-LABlab(20.11, 39.83, -50.82)
CIE-LCHlch(20.11, 64.57, 308.08°)
OKLaboklab(32.93% 0.0504 -0.1462)
OKLCHoklch(32.93% 0.155 289)
XYZxyz(5.6791, 3.0164, 19.6810)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38197D #5E7D19
analogous
#192C7D #38197D #6A197D
triadic
#38197D #7D3819 #197D38
tetradic
#38197D #7D192C #5E7D19 #197D6A
square
#38197D #7D192C #5E7D19 #197D6A
split-complementary
#38197D #7D6A19 #2C7D19
monochromatic
#0B051A #210F4A #38197D #4F23B0 #6A39D7

Accessibility & contrast

On white

13.10
#38197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#38197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38197D
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38197D#FFFFFF#000000##FFFFFF
##38197D1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#1D354A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #38197d;
/* rgb */ color: rgb(56, 25, 125);
/* oklch */ color: oklch(32.9% 0.155 289.0);
Tailwind
colors: {
  custom: {
    50: '#775aa4',
    500: '#38197d',
    950: '#000000',
  },
}
SCSS
$custom: #38197d;
$custom-light: #775aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#38197d",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 258.6,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32927,
    "c": 0.1546,
    "h": 289
  },
  "luminance": 0.03017
}

Semantic roles & 50–950 ramp

primary
#38197D
secondary
#8EB140
accent
#EA3EB4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #38197D

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

Preview Lab → · Contrast checker → · Palette generator →

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