#38245F#38245F

#38245F is a dark, moderate violet. Relative luminance 0.029; OKLCH L 31.9% C 0.101 H 295.8°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#38245F
RGBrgb(56, 36, 95)
HSLhsl(260, 45%, 26%)
HSVhsv(260, 62%, 37%)
CMYKcmyk(41.1%, 62.1%, 0%, 62.7%)
CIE-LABlab(19.76, 24.41, -31.95)
CIE-LCHlch(19.76, 40.21, 307.38°)
OKLaboklab(31.85% 0.0438 -0.0908)
OKLCHoklch(31.85% 0.101 295.8)
XYZxyz(4.3268, 2.9286, 11.1616)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38245F #4B5F24
analogous
#242D5F #38245F #55245F
triadic
#38245F #5F3824 #245F38
tetradic
#38245F #5F242D #4B5F24 #245F55
square
#38245F #5F242D #4B5F24 #245F55
split-complementary
#38245F #5F5524 #2D5F24
monochromatic
#0D0816 #1E1333 #38245F #52358B #6C46B8

Accessibility & contrast

On white

13.24
#38245F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#38245F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38245F
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38245F#FFFFFF#000000##FFFFFF
##38245F1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043061
Deuteranopia (green-blind)
#0C2F5E
Tritanopia (blue-blind)
#2E313D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #38245f;
/* rgb */ color: rgb(56, 36, 95);
/* oklch */ color: oklch(31.9% 0.101 295.8);
Tailwind
colors: {
  custom: {
    50: '#725f8d',
    500: '#38245f',
    950: '#000000',
  },
}
SCSS
$custom: #38245f;
$custom-light: #725f8d;
$custom-dark: #000000;
JSON
{
  "hex": "#38245f",
  "rgb": {
    "r": 56,
    "g": 36,
    "b": 95
  },
  "hsl": {
    "h": 260.339,
    "s": 45.038,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31854,
    "c": 0.10083,
    "h": 295.8
  },
  "luminance": 0.02929
}

Semantic roles & 50–950 ramp

primary
#38245F
secondary
#7B934C
accent
#D553A9
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #38245F

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

Preview Lab → · Contrast checker → · Palette generator →

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