#38195E#38195E

#38195E is a dark, moderate violet. Relative luminance 0.023; OKLCH L 30.0% C 0.117 H 299.9°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#38195E
RGBrgb(56, 25, 94)
HSLhsl(267, 58%, 23%)
HSVhsv(267, 73%, 37%)
CMYKcmyk(40.4%, 73.4%, 0%, 63.1%)
CIE-LABlab(17.20, 30.80, -35.43)
CIE-LCHlch(17.20, 46.94, 311.00°)
OKLaboklab(29.98% 0.0581 -0.101)
OKLCHoklch(29.98% 0.117 299.9)
XYZxyz(3.9984, 2.3441, 10.8293)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38195E #3F5E19
analogous
#191C5E #38195E #5A195E
triadic
#38195E #5E3819 #195E38
tetradic
#38195E #5E191C #3F5E19 #195E5A
square
#38195E #5E191C #3F5E19 #195E5A
split-complementary
#38195E #5E5A19 #1C5E19
monochromatic
#0E0618 #1B0C2E #38195E #55268E #7233BF

Accessibility & contrast

On white

14.30
#38195E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38195E
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38195E#FFFFFF#000000##FFFFFF
##38195E1.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #38195e;
/* rgb */ color: rgb(56, 25, 94);
/* oklch */ color: oklch(30.0% 0.117 299.9);
Tailwind
colors: {
  custom: {
    50: '#72588c',
    500: '#38195e',
    950: '#000000',
  },
}
SCSS
$custom: #38195e;
$custom-light: #72588c;
$custom-dark: #000000;
JSON
{
  "hex": "#38195e",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 94
  },
  "hsl": {
    "h": 266.957,
    "s": 57.983,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29976,
    "c": 0.11652,
    "h": 299.9
  },
  "luminance": 0.02344
}

Semantic roles & 50–950 ramp

primary
#38195E
secondary
#6E943F
accent
#E1479C
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38195E

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

Preview Lab → · Contrast checker → · Palette generator →

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