#38237F#38237F

#38237F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.5% C 0.146 H 286.5°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#38237F
RGBrgb(56, 35, 127)
HSLhsl(254, 57%, 32%)
HSVhsv(254, 72%, 50%)
CMYKcmyk(55.9%, 72.4%, 0%, 50.2%)
CIE-LABlab(22.21, 35.05, -48.64)
CIE-LCHlch(22.21, 59.96, 305.78°)
OKLaboklab(34.47% 0.0413 -0.1398)
OKLCHoklch(34.47% 0.146 286.5)
XYZxyz(6.0615, 3.5748, 20.4452)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38237F #6A7F23
analogous
#233C7F #38237F #66237F
triadic
#38237F #7F3823 #237F38
tetradic
#38237F #7F233C #6A7F23 #237F66
square
#38237F #7F233C #6A7F23 #237F66
split-complementary
#38237F #7F6623 #3C7F23
monochromatic
#0E091F #23164F #38237F #4D30AF #6B4ECE

Accessibility & contrast

On white

12.24
#38237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#38237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38237F
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38237F#FFFFFF#000000##FFFFFF
##38237F1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#1A3B4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #38237f;
/* rgb */ color: rgb(56, 35, 127);
/* oklch */ color: oklch(34.5% 0.146 286.5);
Tailwind
colors: {
  custom: {
    50: '#7760a5',
    500: '#38237f',
    950: '#000000',
  },
}
SCSS
$custom: #38237f;
$custom-light: #7760a5;
$custom-dark: #000000;
JSON
{
  "hex": "#38237f",
  "rgb": {
    "r": 56,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 253.696,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34472,
    "c": 0.14581,
    "h": 286.5
  },
  "luminance": 0.03575
}

Semantic roles & 50–950 ramp

primary
#38237F
secondary
#9AB14C
accent
#E048BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #38237F

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

Preview Lab → · Contrast checker → · Palette generator →

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