#38197E#38197E

#38197E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.156 H 288.7°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#38197E
RGBrgb(56, 25, 126)
HSLhsl(258, 67%, 30%)
HSVhsv(258, 80%, 49%)
CMYKcmyk(55.6%, 80.2%, 0%, 50.6%)
CIE-LABlab(20.21, 40.12, -51.29)
CIE-LCHlch(20.21, 65.12, 308.03°)
OKLaboklab(33.03% 0.0501 -0.1475)
OKLCHoklch(33.03% 0.156 288.7)
XYZxyz(5.7433, 3.0421, 20.0192)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38197E #5F7E19
analogous
#192D7E #38197E #6B197E
triadic
#38197E #7E3819 #197E38
tetradic
#38197E #7E192D #5F7E19 #197E6B
square
#38197E #7E192D #5F7E19 #197E6B
split-complementary
#38197E #7E6B19 #2D7E19
monochromatic
#0B051A #210F4B #38197E #4F23B1 #6A3AD8

Accessibility & contrast

On white

13.06
#38197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38197E
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38197E#FFFFFF#000000##FFFFFF
##38197E1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#1C364B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #38197e;
/* rgb */ color: rgb(56, 25, 126);
/* oklch */ color: oklch(33.0% 0.156 288.7);
Tailwind
colors: {
  custom: {
    50: '#775aa4',
    500: '#38197e',
    950: '#000000',
  },
}
SCSS
$custom: #38197e;
$custom-light: #775aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#38197e",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 258.416,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3303,
    "c": 0.1558,
    "h": 288.7
  },
  "luminance": 0.03042
}

Semantic roles & 50–950 ramp

primary
#38197E
secondary
#8FB241
accent
#EA3EB5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #38197E

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

Preview Lab → · Contrast checker → · Palette generator →

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