#38239D#38239D

#38239D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.183 H 280.7°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#38239D
RGBrgb(56, 35, 157)
HSLhsl(250, 64%, 38%)
HSVhsv(250, 78%, 62%)
CMYKcmyk(64.3%, 77.7%, 0%, 38.4%)
CIE-LABlab(25.19, 44.43, -62.40)
CIE-LCHlch(25.19, 76.60, 305.46°)
OKLaboklab(37.48% 0.0341 -0.1801)
OKLCHoklch(37.48% 0.183 280.7)
XYZxyz(8.3158, 4.4765, 32.3176)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38239D #889D23
analogous
#234B9D #38239D #75239D
triadic
#38239D #9D3823 #239D38
tetradic
#38239D #9D234B #889D23 #239D75
square
#38239D #9D234B #889D23 #239D75
split-complementary
#38239D #9D7523 #4B9D23
monochromatic
#140D39 #26186B #38239D #4A2ECF #745FDB

Accessibility & contrast

On white

11.08
#38239D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#38239D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38239D
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38239D#FFFFFF#000000##FFFFFF
##38239D1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A0
Deuteranopia (green-blind)
#00379B
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #38239d;
/* rgb */ color: rgb(56, 35, 157);
/* oklch */ color: oklch(37.5% 0.183 280.7);
Tailwind
colors: {
  custom: {
    50: '#7c61bb',
    500: '#38239d',
    950: '#000000',
  },
}
SCSS
$custom: #38239d;
$custom-light: #7c61bb;
$custom-dark: #000000;
JSON
{
  "hex": "#38239d",
  "rgb": {
    "r": 56,
    "g": 35,
    "b": 157
  },
  "hsl": {
    "h": 250.328,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37476,
    "c": 0.18327,
    "h": 280.7
  },
  "luminance": 0.04477
}

Semantic roles & 50–950 ramp

primary
#38239D
secondary
#AFC05C
accent
#E741CA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #38239D

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

Preview Lab → · Contrast checker → · Palette generator →

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