#38245B#38245B

#38245B is a dark, moderate violet. Relative luminance 0.029; OKLCH L 31.5% C 0.095 H 297.4°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#38245B
RGBrgb(56, 36, 91)
HSLhsl(262, 43%, 25%)
HSVhsv(262, 60%, 36%)
CMYKcmyk(38.5%, 60.4%, 0%, 64.3%)
CIE-LABlab(19.47, 23.19, -29.77)
CIE-LCHlch(19.47, 37.74, 307.92°)
OKLaboklab(31.55% 0.0438 -0.0844)
OKLCHoklch(31.55% 0.095 297.4)
XYZxyz(4.1496, 2.8578, 10.2285)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38245B #475B24
analogous
#242C5B #38245B #53245B
triadic
#38245B #5B3824 #245B38
tetradic
#38245B #5B242C #475B24 #245B53
square
#38245B #5B242C #475B24 #245B53
split-complementary
#38245B #5B5324 #2C5B24
monochromatic
#0D0916 #1D132F #38245B #533587 #6E47B3

Accessibility & contrast

On white

13.36
#38245B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38245B
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38245B#FFFFFF#000000##FFFFFF
##38245B1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2F5D
Deuteranopia (green-blind)
#122F5A
Tritanopia (blue-blind)
#302F3B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #38245b;
/* rgb */ color: rgb(56, 36, 91);
/* oklch */ color: oklch(31.5% 0.095 297.4);
Tailwind
colors: {
  custom: {
    50: '#715f8a',
    500: '#38245b',
    950: '#000000',
  },
}
SCSS
$custom: #38245b;
$custom-light: #715f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#38245b",
  "rgb": {
    "r": 56,
    "g": 36,
    "b": 91
  },
  "hsl": {
    "h": 261.818,
    "s": 43.307,
    "l": 24.902
  },
  "oklch": {
    "l": 0.31547,
    "c": 0.09508,
    "h": 297.4
  },
  "luminance": 0.02858
}

Semantic roles & 50–950 ramp

primary
#38245B
secondary
#768F4C
accent
#D355A5
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #38245B

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

Preview Lab → · Contrast checker → · Palette generator →

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