#38239C#38239C

#38239C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.182 H 280.9°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#38239C
RGBrgb(56, 35, 156)
HSLhsl(250, 63%, 37%)
HSVhsv(250, 78%, 61%)
CMYKcmyk(64.1%, 77.6%, 0%, 38.8%)
CIE-LABlab(25.08, 44.13, -61.96)
CIE-LCHlch(25.08, 76.06, 305.46°)
OKLaboklab(37.37% 0.0344 -0.1788)
OKLCHoklch(37.37% 0.182 280.9)
XYZxyz(8.2308, 4.4425, 31.8698)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38239C #879C23
analogous
#234B9C #38239C #74239C
triadic
#38239C #9C3823 #239C38
tetradic
#38239C #9C234B #879C23 #239C74
square
#38239C #9C234B #879C23 #239C74
split-complementary
#38239C #9C7423 #4B9C23
monochromatic
#140D38 #26186A #38239C #4A2ECE #745EDB

Accessibility & contrast

On white

11.12
#38239C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#38239C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38239C
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38239C#FFFFFF#000000##FFFFFF
##38239C1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409F
Deuteranopia (green-blind)
#00379A
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #38239c;
/* rgb */ color: rgb(56, 35, 156);
/* oklch */ color: oklch(37.4% 0.182 280.9);
Tailwind
colors: {
  custom: {
    50: '#7c61ba',
    500: '#38239c',
    950: '#000000',
  },
}
SCSS
$custom: #38239c;
$custom-light: #7c61ba;
$custom-dark: #000000;
JSON
{
  "hex": "#38239c",
  "rgb": {
    "r": 56,
    "g": 35,
    "b": 156
  },
  "hsl": {
    "h": 250.413,
    "s": 63.351,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37371,
    "c": 0.18207,
    "h": 280.9
  },
  "luminance": 0.04443
}

Semantic roles & 50–950 ramp

primary
#38239C
secondary
#AEC05B
accent
#E641CA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #38239C

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

Preview Lab → · Contrast checker → · Palette generator →

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