#38238C#38238C

#38238C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.162 H 283.7°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#38238C
RGBrgb(56, 35, 140)
HSLhsl(252, 60%, 34%)
HSVhsv(252, 75%, 55%)
CMYKcmyk(60%, 75%, 0%, 45.1%)
CIE-LABlab(23.46, 39.15, -54.76)
CIE-LCHlch(23.46, 67.31, 305.56°)
OKLaboklab(35.74% 0.0384 -0.1578)
OKLCHoklch(35.74% 0.162 283.7)
XYZxyz(6.9641, 3.9358, 25.1986)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38238C #778C23
analogous
#23438C #38238C #6D238C
triadic
#38238C #8C3823 #238C38
tetradic
#38238C #8C2343 #778C23 #238C6D
square
#38238C #8C2343 #778C23 #238C6D
split-complementary
#38238C #8C6D23 #438C23
monochromatic
#110B2A #24175B #38238C #4C2FBD #6E55D4

Accessibility & contrast

On white

11.75
#38238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#38238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38238C
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38238C#FFFFFF#000000##FFFFFF
##38238C1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00348A
Tritanopia (blue-blind)
#054055
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #38238c;
/* rgb */ color: rgb(56, 35, 140);
/* oklch */ color: oklch(35.7% 0.162 283.7);
Tailwind
colors: {
  custom: {
    50: '#7960af',
    500: '#38238c',
    950: '#000000',
  },
}
SCSS
$custom: #38238c;
$custom-light: #7960af;
$custom-dark: #000000;
JSON
{
  "hex": "#38238c",
  "rgb": {
    "r": 56,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 252,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35737,
    "c": 0.16238,
    "h": 283.7
  },
  "luminance": 0.03936
}

Semantic roles & 50–950 ramp

primary
#38238C
secondary
#A4B852
accent
#E345C3
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #38238C

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

Preview Lab → · Contrast checker → · Palette generator →

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