#38145B#38145B

#38145B is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.0% C 0.120 H 302.6°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#38145B
RGBrgb(56, 20, 91)
HSLhsl(270, 64%, 22%)
HSVhsv(270, 78%, 36%)
CMYKcmyk(38.5%, 78%, 0%, 64.3%)
CIE-LABlab(15.99, 32.63, -35.39)
CIE-LCHlch(15.99, 48.14, 312.68°)
OKLaboklab(29.03% 0.0644 -0.1008)
OKLCHoklch(29.03% 0.12 302.6)
XYZxyz(3.7689, 2.0964, 10.1016)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38145B #375B14
analogous
#15145B #38145B #5B145B
triadic
#38145B #5B3814 #145B38
tetradic
#38145B #5B1514 #375B14 #145B5B
square
#38145B #5B1514 #375B14 #145B5B
split-complementary
#38145B #5B5B14 #145B15
monochromatic
#0F0619 #190929 #38145B #571F8D #762ABF

Accessibility & contrast

On white

14.80
#38145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#38145B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38145B
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38145B#FFFFFF#000000##FFFFFF
##38145B1.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#00275A
Tritanopia (blue-blind)
#312536
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #38145b;
/* rgb */ color: rgb(56, 20, 91);
/* oklch */ color: oklch(29.0% 0.120 302.6);
Tailwind
colors: {
  custom: {
    50: '#73558a',
    500: '#38145b',
    950: '#000000',
  },
}
SCSS
$custom: #38145b;
$custom-light: #73558a;
$custom-dark: #000000;
JSON
{
  "hex": "#38145b",
  "rgb": {
    "r": 56,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 270.423,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29032,
    "c": 0.11968,
    "h": 302.6
  },
  "luminance": 0.02096
}

Semantic roles & 50–950 ramp

primary
#38145B
secondary
#659338
accent
#E74193
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38145B

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

Preview Lab → · Contrast checker → · Palette generator →

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