#38185E#38185E

#38185E is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.8% C 0.118 H 300.2°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#38185E
RGBrgb(56, 24, 94)
HSLhsl(267, 59%, 23%)
HSVhsv(267, 74%, 37%)
CMYKcmyk(40.4%, 74.5%, 0%, 63.1%)
CIE-LABlab(17.00, 31.35, -35.75)
CIE-LCHlch(17.00, 47.55, 311.25°)
OKLaboklab(29.83% 0.0593 -0.1019)
OKLCHoklch(29.83% 0.118 300.2)
XYZxyz(3.9774, 2.3021, 10.8223)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38185E #3E5E18
analogous
#181B5E #38185E #5B185E
triadic
#38185E #5E3818 #185E38
tetradic
#38185E #5E181B #3E5E18 #185E5B
square
#38185E #5E181B #3E5E18 #185E5B
split-complementary
#38185E #5E5B18 #1B5E18
monochromatic
#0F0618 #1B0C2D #38185E #55248F #7231C0

Accessibility & contrast

On white

14.38
#38185E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#38185E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38185E
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38185E#FFFFFF#000000##FFFFFF
##38185E1.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A60
Deuteranopia (green-blind)
#00295D
Tritanopia (blue-blind)
#2F2939
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #38185e;
/* rgb */ color: rgb(56, 24, 94);
/* oklch */ color: oklch(29.8% 0.118 300.2);
Tailwind
colors: {
  custom: {
    50: '#73588c',
    500: '#38185e',
    950: '#000000',
  },
}
SCSS
$custom: #38185e;
$custom-light: #73588c;
$custom-dark: #000000;
JSON
{
  "hex": "#38185e",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 94
  },
  "hsl": {
    "h": 267.429,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29833,
    "c": 0.11793,
    "h": 300.2
  },
  "luminance": 0.02302
}

Semantic roles & 50–950 ramp

primary
#38185E
secondary
#6D943D
accent
#E3459B
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38185E

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

Preview Lab → · Contrast checker → · Palette generator →

#38185E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva