#38245A#38245A

#38245A is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.5% C 0.094 H 297.9°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#38245A
RGBrgb(56, 36, 90)
HSLhsl(262, 43%, 25%)
HSVhsv(262, 60%, 35%)
CMYKcmyk(37.8%, 60%, 0%, 64.7%)
CIE-LABlab(19.39, 22.89, -29.22)
CIE-LCHlch(19.39, 37.12, 308.08°)
OKLaboklab(31.47% 0.0438 -0.0828)
OKLCHoklch(31.47% 0.094 297.9)
XYZxyz(4.1068, 2.8406, 10.0028)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38245A #465A24
analogous
#242B5A #38245A #53245A
triadic
#38245A #5A3824 #245A38
tetradic
#38245A #5A242B #465A24 #245A53
square
#38245A #5A242B #465A24 #245A53
split-complementary
#38245A #5A5324 #2B5A24
monochromatic
#0E0916 #1D132E #38245A #533586 #6E47B1

Accessibility & contrast

On white

13.39
#38245A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#38245A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38245A
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38245A#FFFFFF#000000##FFFFFF
##38245A1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2F5C
Deuteranopia (green-blind)
#132E59
Tritanopia (blue-blind)
#302F3B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #38245a;
/* rgb */ color: rgb(56, 36, 90);
/* oklch */ color: oklch(31.5% 0.094 297.9);
Tailwind
colors: {
  custom: {
    50: '#715f89',
    500: '#38245a',
    950: '#000000',
  },
}
SCSS
$custom: #38245a;
$custom-light: #715f89;
$custom-dark: #000000;
JSON
{
  "hex": "#38245a",
  "rgb": {
    "r": 56,
    "g": 36,
    "b": 90
  },
  "hsl": {
    "h": 262.222,
    "s": 42.857,
    "l": 24.706
  },
  "oklch": {
    "l": 0.31472,
    "c": 0.09364,
    "h": 297.9
  },
  "luminance": 0.02841
}

Semantic roles & 50–950 ramp

primary
#38245A
secondary
#758E4C
accent
#D355A4
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040B
muted
#7B797C

Preview Lab

Preview with #38245A

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

Preview Lab → · Contrast checker → · Palette generator →

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