#38238A#38238A

#38238A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.160 H 284.1°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#38238A
RGBrgb(56, 35, 138)
HSLhsl(252, 60%, 34%)
HSVhsv(252, 75%, 54%)
CMYKcmyk(59.4%, 74.6%, 0%, 45.9%)
CIE-LABlab(23.26, 38.52, -53.84)
CIE-LCHlch(23.26, 66.20, 305.58°)
OKLaboklab(35.54% 0.0389 -0.155)
OKLCHoklch(35.54% 0.16 284.1)
XYZxyz(6.8180, 3.8774, 24.4290)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38238A #758A23
analogous
#23428A #38238A #6C238A
triadic
#38238A #8A3823 #238A38
tetradic
#38238A #8A2342 #758A23 #238A6C
square
#38238A #8A2342 #758A23 #238A6C
split-complementary
#38238A #8A6C23 #428A23
monochromatic
#100A28 #241759 #38238A #4C2FBB #6E54D4

Accessibility & contrast

On white

11.83
#38238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#38238A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38238A
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38238A#FFFFFF#000000##FFFFFF
##38238A1.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003488
Tritanopia (blue-blind)
#0A3F54
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #38238a;
/* rgb */ color: rgb(56, 35, 138);
/* oklch */ color: oklch(35.5% 0.160 284.1);
Tailwind
colors: {
  custom: {
    50: '#7960ad',
    500: '#38238a',
    950: '#000000',
  },
}
SCSS
$custom: #38238a;
$custom-light: #7960ad;
$custom-dark: #000000;
JSON
{
  "hex": "#38238a",
  "rgb": {
    "r": 56,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 252.233,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35539,
    "c": 0.15986,
    "h": 284.1
  },
  "luminance": 0.03878
}

Semantic roles & 50–950 ramp

primary
#38238A
secondary
#A3B751
accent
#E345C3
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #38238A

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

Preview Lab → · Contrast checker → · Palette generator →

#38238A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva