#38237B#38237B

#38237B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.1% C 0.141 H 287.4°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#38237B
RGBrgb(56, 35, 123)
HSLhsl(254, 56%, 31%)
HSVhsv(254, 72%, 48%)
CMYKcmyk(54.5%, 71.5%, 0%, 51.8%)
CIE-LABlab(21.85, 33.79, -46.71)
CIE-LCHlch(21.85, 57.65, 305.89°)
OKLaboklab(34.1% 0.0421 -0.1342)
OKLCHoklch(34.1% 0.141 287.4)
XYZxyz(5.8060, 3.4726, 19.0994)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38237B #667B23
analogous
#233A7B #38237B #64237B
triadic
#38237B #7B3823 #237B38
tetradic
#38237B #7B233A #667B23 #237B64
square
#38237B #7B233A #667B23 #237B64
split-complementary
#38237B #7B6423 #3A7B23
monochromatic
#0D081C #22154B #38237B #4E31AB #6B4CCC

Accessibility & contrast

On white

12.39
#38237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38237B
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38237B#FFFFFF#000000##FFFFFF
##38237B1.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003279
Tritanopia (blue-blind)
#1E3A4C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #38237b;
/* rgb */ color: rgb(56, 35, 123);
/* oklch */ color: oklch(34.1% 0.141 287.4);
Tailwind
colors: {
  custom: {
    50: '#7660a2',
    500: '#38237b',
    950: '#000000',
  },
}
SCSS
$custom: #38237b;
$custom-light: #7660a2;
$custom-dark: #000000;
JSON
{
  "hex": "#38237b",
  "rgb": {
    "r": 56,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 254.318,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34096,
    "c": 0.1406,
    "h": 287.4
  },
  "luminance": 0.03473
}

Semantic roles & 50–950 ramp

primary
#38237B
secondary
#96AE4C
accent
#DF49BB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #38237B

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

Preview Lab → · Contrast checker → · Palette generator →

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