#38237A#38237A

#38237A is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.139 H 287.7°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#38237A
RGBrgb(56, 35, 122)
HSLhsl(254, 55%, 31%)
HSVhsv(254, 71%, 48%)
CMYKcmyk(54.1%, 71.3%, 0%, 52.2%)
CIE-LABlab(21.75, 33.48, -46.22)
CIE-LCHlch(21.75, 57.07, 305.92°)
OKLaboklab(34% 0.0423 -0.1327)
OKLCHoklch(34% 0.139 287.7)
XYZxyz(5.7437, 3.4477, 18.7714)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38237A #657A23
analogous
#23397A #38237A #63237A
triadic
#38237A #7A3823 #237A38
tetradic
#38237A #7A2339 #657A23 #237A63
square
#38237A #7A2339 #657A23 #237A63
split-complementary
#38237A #7A6323 #397A23
monochromatic
#0C081B #22154A #38237A #4E31AA #6B4CCC

Accessibility & contrast

On white

12.43
#38237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#38237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38237A
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38237A#FFFFFF#000000##FFFFFF
##38237A1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003278
Tritanopia (blue-blind)
#1F394B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #38237a;
/* rgb */ color: rgb(56, 35, 122);
/* oklch */ color: oklch(34.0% 0.139 287.7);
Tailwind
colors: {
  custom: {
    50: '#7660a1',
    500: '#38237a',
    950: '#000000',
  },
}
SCSS
$custom: #38237a;
$custom-light: #7660a1;
$custom-dark: #000000;
JSON
{
  "hex": "#38237a",
  "rgb": {
    "r": 56,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 254.483,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34003,
    "c": 0.13929,
    "h": 287.7
  },
  "luminance": 0.03448
}

Semantic roles & 50–950 ramp

primary
#38237A
secondary
#95AD4C
accent
#DF49BB
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09050F
muted
#7B797F

Preview Lab

Preview with #38237A

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

Preview Lab → · Contrast checker → · Palette generator →

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