#38238E#38238E

#38238E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.165 H 283.3°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#38238E
RGBrgb(56, 35, 142)
HSLhsl(252, 60%, 35%)
HSVhsv(252, 75%, 56%)
CMYKcmyk(60.6%, 75.4%, 0%, 44.3%)
CIE-LABlab(23.66, 39.77, -55.68)
CIE-LCHlch(23.66, 68.43, 305.54°)
OKLaboklab(35.94% 0.038 -0.1604)
OKLCHoklch(35.94% 0.165 283.3)
XYZxyz(7.1129, 3.9953, 25.9823)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38238E #798E23
analogous
#23438E #38238E #6E238E
triadic
#38238E #8E3823 #238E38
tetradic
#38238E #8E2343 #798E23 #238E6E
square
#38238E #8E2343 #798E23 #238E6E
split-complementary
#38238E #8E6E23 #438E23
monochromatic
#110B2C #25175D #38238E #4B2FBF #6F56D5

Accessibility & contrast

On white

11.67
#38238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#38238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38238E
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38238E#FFFFFF#000000##FFFFFF
##38238E1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #38238e;
/* rgb */ color: rgb(56, 35, 142);
/* oklch */ color: oklch(35.9% 0.165 283.3);
Tailwind
colors: {
  custom: {
    50: '#7960b0',
    500: '#38238e',
    950: '#000000',
  },
}
SCSS
$custom: #38238e;
$custom-light: #7960b0;
$custom-dark: #000000;
JSON
{
  "hex": "#38238e",
  "rgb": {
    "r": 56,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 251.776,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35937,
    "c": 0.16488,
    "h": 283.3
  },
  "luminance": 0.03996
}

Semantic roles & 50–950 ramp

primary
#38238E
secondary
#A5B953
accent
#E444C4
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #38238E

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

Preview Lab → · Contrast checker → · Palette generator →

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