#38245C#38245C

#38245C is a dark, moderate violet. Relative luminance 0.029; OKLCH L 31.6% C 0.097 H 297.0°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#38245C
RGBrgb(56, 36, 92)
HSLhsl(261, 44%, 25%)
HSVhsv(261, 61%, 36%)
CMYKcmyk(39.1%, 60.9%, 0%, 63.9%)
CIE-LABlab(19.54, 23.50, -30.32)
CIE-LCHlch(19.54, 38.36, 307.77°)
OKLaboklab(31.62% 0.0438 -0.086)
OKLCHoklch(31.62% 0.097 297)
XYZxyz(4.1930, 2.8751, 10.4572)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38245C #485C24
analogous
#242C5C #38245C #54245C
triadic
#38245C #5C3824 #245C38
tetradic
#38245C #5C242C #485C24 #245C54
square
#38245C #5C242C #485C24 #245C54
split-complementary
#38245C #5C5424 #2C5C24
monochromatic
#0D0916 #1D1330 #38245C #533588 #6E46B4

Accessibility & contrast

On white

13.33
#38245C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#38245C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38245C
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38245C#FFFFFF#000000##FFFFFF
##38245C1.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09305E
Deuteranopia (green-blind)
#102F5B
Tritanopia (blue-blind)
#30303C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #38245c;
/* rgb */ color: rgb(56, 36, 92);
/* oklch */ color: oklch(31.6% 0.097 297.0);
Tailwind
colors: {
  custom: {
    50: '#715f8a',
    500: '#38245c',
    950: '#000000',
  },
}
SCSS
$custom: #38245c;
$custom-light: #715f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#38245c",
  "rgb": {
    "r": 56,
    "g": 36,
    "b": 92
  },
  "hsl": {
    "h": 261.429,
    "s": 43.75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.31623,
    "c": 0.09653,
    "h": 297
  },
  "luminance": 0.02875
}

Semantic roles & 50–950 ramp

primary
#38245C
secondary
#78904C
accent
#D354A6
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #38245C

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

Preview Lab → · Contrast checker → · Palette generator →

#38245C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva