#38239E#38239E

#38239E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.184 H 280.6°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#38239E
RGBrgb(56, 35, 158)
HSLhsl(250, 64%, 38%)
HSVhsv(250, 78%, 62%)
CMYKcmyk(64.6%, 77.8%, 0%, 38%)
CIE-LABlab(25.29, 44.74, -62.83)
CIE-LCHlch(25.29, 77.14, 305.45°)
OKLaboklab(37.58% 0.0338 -0.1813)
OKLCHoklch(37.58% 0.184 280.6)
XYZxyz(8.4015, 4.5108, 32.7691)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38239E #899E23
analogous
#234B9E #38239E #75239E
triadic
#38239E #9E3823 #239E38
tetradic
#38239E #9E234B #899E23 #239E75
square
#38239E #9E234B #899E23 #239E75
split-complementary
#38239E #9E7523 #4B9E23
monochromatic
#140D3A #26186C #38239E #4A2ED0 #7560DC

Accessibility & contrast

On white

11.04
#38239E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#38239E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38239E
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38239E#FFFFFF#000000##FFFFFF
##38239E1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A1
Deuteranopia (green-blind)
#00379C
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #38239e;
/* rgb */ color: rgb(56, 35, 158);
/* oklch */ color: oklch(37.6% 0.184 280.6);
Tailwind
colors: {
  custom: {
    50: '#7d61bc',
    500: '#38239e',
    950: '#000000',
  },
}
SCSS
$custom: #38239e;
$custom-light: #7d61bc;
$custom-dark: #000000;
JSON
{
  "hex": "#38239e",
  "rgb": {
    "r": 56,
    "g": 35,
    "b": 158
  },
  "hsl": {
    "h": 250.244,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37581,
    "c": 0.18447,
    "h": 280.6
  },
  "luminance": 0.04511
}

Semantic roles & 50–950 ramp

primary
#38239E
secondary
#AFC15C
accent
#E741CA
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #38239E

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

Preview Lab → · Contrast checker → · Palette generator →

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