#38146D#38146D

#38146D is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.141 H 295.0°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#38146D
RGBrgb(56, 20, 109)
HSLhsl(264, 69%, 25%)
HSVhsv(264, 82%, 43%)
CMYKcmyk(48.6%, 81.7%, 0%, 57.3%)
CIE-LABlab(17.67, 37.62, -44.53)
CIE-LCHlch(17.67, 58.30, 310.19°)
OKLaboklab(30.73% 0.0595 -0.1277)
OKLCHoklch(30.73% 0.141 295)
XYZxyz(4.6406, 2.4451, 14.6925)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38146D #496D14
analogous
#141C6D #38146D #64146D
triadic
#38146D #6D3814 #146D38
tetradic
#38146D #6D141C #496D14 #146D64
square
#38146D #6D141C #496D14 #146D64
split-complementary
#38146D #6D6414 #1C6D14
monochromatic
#0D051A #1D0B39 #38146D #531DA1 #6D27D4

Accessibility & contrast

On white

14.10
#38146D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#38146D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38146D
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38146D#FFFFFF#000000##FFFFFF
##38146D1.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6F
Deuteranopia (green-blind)
#002A6B
Tritanopia (blue-blind)
#292D40
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #38146d;
/* rgb */ color: rgb(56, 20, 109);
/* oklch */ color: oklch(30.7% 0.141 295.0);
Tailwind
colors: {
  custom: {
    50: '#755698',
    500: '#38146d',
    950: '#000000',
  },
}
SCSS
$custom: #38146d;
$custom-light: #755698;
$custom-dark: #000000;
JSON
{
  "hex": "#38146d",
  "rgb": {
    "r": 56,
    "g": 20,
    "b": 109
  },
  "hsl": {
    "h": 264.27,
    "s": 68.992,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30734,
    "c": 0.14088,
    "h": 295
  },
  "luminance": 0.02445
}

Semantic roles & 50–950 ramp

primary
#38146D
secondary
#79A439
accent
#EC3CA5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #38146D

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

Preview Lab → · Contrast checker → · Palette generator →

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