#38296A#38296A

#38296A is a dark, moderate violet. Relative luminance 0.035; OKLCH L 33.6% C 0.109 H 289.9°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#38296A
RGBrgb(56, 41, 106)
HSLhsl(254, 44%, 29%)
HSVhsv(254, 61%, 42%)
CMYKcmyk(47.2%, 61.3%, 0%, 58.4%)
CIE-LABlab(21.83, 24.61, -35.82)
CIE-LCHlch(21.83, 43.46, 304.50°)
OKLaboklab(33.64% 0.037 -0.1021)
OKLCHoklch(33.64% 0.109 289.9)
XYZxyz(5.0246, 3.4671, 14.0373)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38296A #5B6A29
analogous
#293B6A #38296A #59296A
triadic
#38296A #6A3829 #296A38
tetradic
#38296A #6A293B #5B6A29 #296A59
square
#38296A #6A293B #5B6A29 #296A59
split-complementary
#38296A #6A5929 #3B6A29
monochromatic
#0C0916 #21183E #38296A #4F3A96 #6A52BC

Accessibility & contrast

On white

12.40
#38296A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38296A
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38296A#FFFFFF#000000##FFFFFF
##38296A1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366C
Deuteranopia (green-blind)
#023369
Tritanopia (blue-blind)
#293745
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #38296a;
/* rgb */ color: rgb(56, 41, 106);
/* oklch */ color: oklch(33.6% 0.109 289.9);
Tailwind
colors: {
  custom: {
    50: '#736395',
    500: '#38296a',
    950: '#000000',
  },
}
SCSS
$custom: #38296a;
$custom-light: #736395;
$custom-dark: #000000;
JSON
{
  "hex": "#38296a",
  "rgb": {
    "r": 56,
    "g": 41,
    "b": 106
  },
  "hsl": {
    "h": 253.846,
    "s": 44.218,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33637,
    "c": 0.10865,
    "h": 289.9
  },
  "luminance": 0.03467
}

Semantic roles & 50–950 ramp

primary
#38296A
secondary
#8B9C52
accent
#D454B6
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050D
muted
#7B797E

Preview Lab

Preview with #38296A

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

Preview Lab → · Contrast checker → · Palette generator →

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