#38239F#38239F

#38239F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.186 H 280.4°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#38239F
RGBrgb(56, 35, 159)
HSLhsl(250, 64%, 38%)
HSVhsv(250, 78%, 62%)
CMYKcmyk(64.8%, 78%, 0%, 37.6%)
CIE-LABlab(25.40, 45.05, -63.27)
CIE-LCHlch(25.40, 77.67, 305.45°)
OKLaboklab(37.69% 0.0336 -0.1826)
OKLCHoklch(37.69% 0.186 280.4)
XYZxyz(8.4879, 4.5454, 33.2242)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38239F #8A9F23
analogous
#234C9F #38239F #76239F
triadic
#38239F #9F3823 #239F38
tetradic
#38239F #9F234C #8A9F23 #239F76
square
#38239F #9F234C #8A9F23 #239F76
split-complementary
#38239F #9F7623 #4C9F23
monochromatic
#150D3B #26186D #38239F #4A2ED1 #7560DC

Accessibility & contrast

On white

11.00
#38239F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#38239F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38239F
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38239F#FFFFFF#000000##FFFFFF
##38239F1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00379D
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #38239f;
/* rgb */ color: rgb(56, 35, 159);
/* oklch */ color: oklch(37.7% 0.186 280.4);
Tailwind
colors: {
  custom: {
    50: '#7d61bd',
    500: '#38239f',
    950: '#000000',
  },
}
SCSS
$custom: #38239f;
$custom-light: #7d61bd;
$custom-dark: #000000;
JSON
{
  "hex": "#38239f",
  "rgb": {
    "r": 56,
    "g": 35,
    "b": 159
  },
  "hsl": {
    "h": 250.161,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37686,
    "c": 0.18567,
    "h": 280.4
  },
  "luminance": 0.04546
}

Semantic roles & 50–950 ramp

primary
#38239F
secondary
#B0C15D
accent
#E741CB
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #38239F

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

Preview Lab → · Contrast checker → · Palette generator →

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