#38146B#38146B

#38146B is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.139 H 295.7°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#38146B
RGBrgb(56, 20, 107)
HSLhsl(265, 69%, 25%)
HSVhsv(265, 81%, 42%)
CMYKcmyk(47.7%, 81.3%, 0%, 58%)
CIE-LABlab(17.47, 37.06, -43.55)
CIE-LCHlch(17.47, 57.19, 310.40°)
OKLaboklab(30.54% 0.0601 -0.1248)
OKLCHoklch(30.54% 0.139 295.7)
XYZxyz(4.5342, 2.4025, 14.1319)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38146B #476B14
analogous
#141B6B #38146B #64146B
triadic
#38146B #6B3814 #146B38
tetradic
#38146B #6B141B #476B14 #146B64
square
#38146B #6B141B #476B14 #146B64
split-complementary
#38146B #6B6414 #1B6B14
monochromatic
#0D051A #1D0A37 #38146B #531E9F #6E27D2

Accessibility & contrast

On white

14.18
#38146B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#38146B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38146B
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38146B#FFFFFF#000000##FFFFFF
##38146B1.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#002A69
Tritanopia (blue-blind)
#2A2C3F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #38146b;
/* rgb */ color: rgb(56, 20, 107);
/* oklch */ color: oklch(30.5% 0.139 295.7);
Tailwind
colors: {
  custom: {
    50: '#755696',
    500: '#38146b',
    950: '#000000',
  },
}
SCSS
$custom: #38146b;
$custom-light: #755696;
$custom-dark: #000000;
JSON
{
  "hex": "#38146b",
  "rgb": {
    "r": 56,
    "g": 20,
    "b": 107
  },
  "hsl": {
    "h": 264.828,
    "s": 68.504,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30537,
    "c": 0.13854,
    "h": 295.7
  },
  "luminance": 0.02403
}

Semantic roles & 50–950 ramp

primary
#38146B
secondary
#76A239
accent
#EB3CA3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #38146B

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

Preview Lab → · Contrast checker → · Palette generator →

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