#38146E#38146E

#38146E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.142 H 294.6°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#38146E
RGBrgb(56, 20, 110)
HSLhsl(264, 69%, 25%)
HSVhsv(264, 82%, 43%)
CMYKcmyk(49.1%, 81.8%, 0%, 56.9%)
CIE-LABlab(17.77, 37.90, -45.02)
CIE-LCHlch(17.77, 58.85, 310.09°)
OKLaboklab(30.83% 0.0592 -0.1291)
OKLCHoklch(30.83% 0.142 294.6)
XYZxyz(4.6947, 2.4667, 14.9776)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38146E #4A6E14
analogous
#141D6E #38146E #65146E
triadic
#38146E #6E3814 #146E38
tetradic
#38146E #6E141D #4A6E14 #146E65
square
#38146E #6E141D #4A6E14 #146E65
split-complementary
#38146E #6E6514 #1D6E14
monochromatic
#0D051A #1E0B3A #38146E #521DA2 #6D27D6

Accessibility & contrast

On white

14.06
#38146E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38146E
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38146E#FFFFFF#000000##FFFFFF
##38146E1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#002A6C
Tritanopia (blue-blind)
#282D41
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #38146e;
/* rgb */ color: rgb(56, 20, 110);
/* oklch */ color: oklch(30.8% 0.142 294.6);
Tailwind
colors: {
  custom: {
    50: '#755698',
    500: '#38146e',
    950: '#000000',
  },
}
SCSS
$custom: #38146e;
$custom-light: #755698;
$custom-dark: #000000;
JSON
{
  "hex": "#38146e",
  "rgb": {
    "r": 56,
    "g": 20,
    "b": 110
  },
  "hsl": {
    "h": 264,
    "s": 69.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30834,
    "c": 0.14204,
    "h": 294.6
  },
  "luminance": 0.02467
}

Semantic roles & 50–950 ramp

primary
#38146E
secondary
#7AA539
accent
#EC3CA6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #38146E

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

Preview Lab → · Contrast checker → · Palette generator →

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