#38197B#38197B

#38197B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.152 H 289.6°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#38197B
RGBrgb(56, 25, 123)
HSLhsl(259, 66%, 29%)
HSVhsv(259, 80%, 48%)
CMYKcmyk(54.5%, 79.7%, 0%, 51.8%)
CIE-LABlab(19.91, 39.24, -49.88)
CIE-LCHlch(19.91, 63.47, 308.19°)
OKLaboklab(32.72% 0.051 -0.1434)
OKLCHoklch(32.72% 0.152 289.6)
XYZxyz(5.5526, 2.9658, 19.0149)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38197B #5C7B19
analogous
#192B7B #38197B #69197B
triadic
#38197B #7B3819 #197B38
tetradic
#38197B #7B192B #5C7B19 #197B69
square
#38197B #7B192B #5C7B19 #197B69
split-complementary
#38197B #7B6919 #2B7B19
monochromatic
#0C0519 #210F48 #38197B #4F23AE #6A38D7

Accessibility & contrast

On white

13.18
#38197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#38197B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38197B
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38197B#FFFFFF#000000##FFFFFF
##38197B1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#1F3549
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #38197b;
/* rgb */ color: rgb(56, 25, 123);
/* oklch */ color: oklch(32.7% 0.152 289.6);
Tailwind
colors: {
  custom: {
    50: '#775aa2',
    500: '#38197b',
    950: '#000000',
  },
}
SCSS
$custom: #38197b;
$custom-light: #775aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#38197b",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 258.98,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32724,
    "c": 0.15221,
    "h": 289.6
  },
  "luminance": 0.02966
}

Semantic roles & 50–950 ramp

primary
#38197B
secondary
#8CAF40
accent
#E93FB3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #38197B

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

Preview Lab → · Contrast checker → · Palette generator →

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