#38195D#38195D

#38195D is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.9% C 0.115 H 300.4°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#38195D
RGBrgb(56, 25, 93)
HSLhsl(267, 58%, 23%)
HSVhsv(267, 73%, 36%)
CMYKcmyk(39.8%, 73.1%, 0%, 63.5%)
CIE-LABlab(17.11, 30.51, -34.90)
CIE-LCHlch(17.11, 46.35, 311.17°)
OKLaboklab(29.89% 0.0583 -0.0994)
OKLCHoklch(29.89% 0.115 300.4)
XYZxyz(3.9538, 2.3263, 10.5945)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38195D #3E5D19
analogous
#191C5D #38195D #5A195D
triadic
#38195D #5D3819 #195D38
tetradic
#38195D #5D191C #3E5D19 #195D5A
square
#38195D #5D191C #3E5D19 #195D5A
split-complementary
#38195D #5D5A19 #1C5D19
monochromatic
#0F0618 #1B0C2D #38195D #55268D #7233BD

Accessibility & contrast

On white

14.33
#38195D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#38195D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38195D
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38195D#FFFFFF#000000##FFFFFF
##38195D1.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5F
Deuteranopia (green-blind)
#002A5C
Tritanopia (blue-blind)
#302938
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #38195d;
/* rgb */ color: rgb(56, 25, 93);
/* oklch */ color: oklch(29.9% 0.115 300.4);
Tailwind
colors: {
  custom: {
    50: '#72588b',
    500: '#38195d',
    950: '#000000',
  },
}
SCSS
$custom: #38195d;
$custom-light: #72588b;
$custom-dark: #000000;
JSON
{
  "hex": "#38195d",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 93
  },
  "hsl": {
    "h": 267.353,
    "s": 57.627,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29889,
    "c": 0.11526,
    "h": 300.4
  },
  "luminance": 0.02326
}

Semantic roles & 50–950 ramp

primary
#38195D
secondary
#6D933F
accent
#E1479B
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38195D

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

Preview Lab → · Contrast checker → · Palette generator →

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