#38245E#38245E

#38245E is a dark, moderate violet. Relative luminance 0.029; OKLCH L 31.8% C 0.099 H 296.2°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#38245E
RGBrgb(56, 36, 94)
HSLhsl(261, 45%, 25%)
HSVhsv(261, 62%, 37%)
CMYKcmyk(40.4%, 61.7%, 0%, 63.1%)
CIE-LABlab(19.68, 24.10, -31.41)
CIE-LCHlch(19.68, 39.59, 307.50°)
OKLaboklab(31.78% 0.0439 -0.0892)
OKLCHoklch(31.78% 0.099 296.2)
XYZxyz(4.2816, 2.9106, 10.9237)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38245E #4A5E24
analogous
#242D5E #38245E #55245E
triadic
#38245E #5E3824 #245E38
tetradic
#38245E #5E242D #4A5E24 #245E55
square
#38245E #5E242D #4A5E24 #245E55
split-complementary
#38245E #5E5524 #2D5E24
monochromatic
#0D0816 #1E1332 #38245E #52358A #6D46B7

Accessibility & contrast

On white

13.27
#38245E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38245E
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38245E#FFFFFF#000000##FFFFFF
##38245E1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053060
Deuteranopia (green-blind)
#0D2F5D
Tritanopia (blue-blind)
#2F303D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #38245e;
/* rgb */ color: rgb(56, 36, 94);
/* oklch */ color: oklch(31.8% 0.099 296.2);
Tailwind
colors: {
  custom: {
    50: '#725f8c',
    500: '#38245e',
    950: '#000000',
  },
}
SCSS
$custom: #38245e;
$custom-light: #725f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#38245e",
  "rgb": {
    "r": 56,
    "g": 36,
    "b": 94
  },
  "hsl": {
    "h": 260.69,
    "s": 44.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31776,
    "c": 0.0994,
    "h": 296.2
  },
  "luminance": 0.02911
}

Semantic roles & 50–950 ramp

primary
#38245E
secondary
#7A924C
accent
#D453A8
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #38245E

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

Preview Lab → · Contrast checker → · Palette generator →

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