#38237D#38237D

#38237D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.143 H 286.9°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#38237D
RGBrgb(56, 35, 125)
HSLhsl(254, 56%, 31%)
HSVhsv(254, 72%, 49%)
CMYKcmyk(55.2%, 72%, 0%, 51%)
CIE-LABlab(22.03, 34.42, -47.68)
CIE-LCHlch(22.03, 58.81, 305.83°)
OKLaboklab(34.28% 0.0417 -0.137)
OKLCHoklch(34.28% 0.143 286.9)
XYZxyz(5.9325, 3.5232, 19.7655)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38237D #687D23
analogous
#233B7D #38237D #65237D
triadic
#38237D #7D3823 #237D38
tetradic
#38237D #7D233B #687D23 #237D65
square
#38237D #7D233B #687D23 #237D65
split-complementary
#38237D #7D6523 #3B7D23
monochromatic
#0D081D #23164D #38237D #4D30AD #6B4DCD

Accessibility & contrast

On white

12.32
#38237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#38237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38237D
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38237D#FFFFFF#000000##FFFFFF
##38237D1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#1C3A4D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #38237d;
/* rgb */ color: rgb(56, 35, 125);
/* oklch */ color: oklch(34.3% 0.143 286.9);
Tailwind
colors: {
  custom: {
    50: '#7660a3',
    500: '#38237d',
    950: '#000000',
  },
}
SCSS
$custom: #38237d;
$custom-light: #7660a3;
$custom-dark: #000000;
JSON
{
  "hex": "#38237d",
  "rgb": {
    "r": 56,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 254,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34283,
    "c": 0.14321,
    "h": 286.9
  },
  "luminance": 0.03523
}

Semantic roles & 50–950 ramp

primary
#38237D
secondary
#98AF4C
accent
#E048BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #38237D

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

Preview Lab → · Contrast checker → · Palette generator →

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