#38245D#38245D

#38245D is a dark, moderate violet. Relative luminance 0.029; OKLCH L 31.7% C 0.098 H 296.6°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#38245D
RGBrgb(56, 36, 93)
HSLhsl(261, 44%, 25%)
HSVhsv(261, 61%, 36%)
CMYKcmyk(39.8%, 61.3%, 0%, 63.5%)
CIE-LABlab(19.61, 23.80, -30.87)
CIE-LCHlch(19.61, 38.98, 307.63°)
OKLaboklab(31.7% 0.0439 -0.0876)
OKLCHoklch(31.7% 0.098 296.6)
XYZxyz(4.2370, 2.8927, 10.6889)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38245D #495D24
analogous
#242C5D #38245D #54245D
triadic
#38245D #5D3824 #245D38
tetradic
#38245D #5D242C #495D24 #245D54
square
#38245D #5D242C #495D24 #245D54
split-complementary
#38245D #5D5424 #2C5D24
monochromatic
#0D0916 #1D1331 #38245D #533589 #6D46B5

Accessibility & contrast

On white

13.30
#38245D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38245D
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38245D#FFFFFF#000000##FFFFFF
##38245D1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07305F
Deuteranopia (green-blind)
#0F2F5C
Tritanopia (blue-blind)
#2F303C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #38245d;
/* rgb */ color: rgb(56, 36, 93);
/* oklch */ color: oklch(31.7% 0.098 296.6);
Tailwind
colors: {
  custom: {
    50: '#715f8b',
    500: '#38245d',
    950: '#000000',
  },
}
SCSS
$custom: #38245d;
$custom-light: #715f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#38245d",
  "rgb": {
    "r": 56,
    "g": 36,
    "b": 93
  },
  "hsl": {
    "h": 261.053,
    "s": 44.186,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31699,
    "c": 0.09796,
    "h": 296.6
  },
  "luminance": 0.02893
}

Semantic roles & 50–950 ramp

primary
#38245D
secondary
#79914C
accent
#D454A7
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #38245D

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

Preview Lab → · Contrast checker → · Palette generator →

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