#38195F#38195F

#38195F is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.1% C 0.118 H 299.5°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#38195F
RGBrgb(56, 25, 95)
HSLhsl(267, 58%, 24%)
HSVhsv(267, 74%, 37%)
CMYKcmyk(41.1%, 73.7%, 0%, 62.7%)
CIE-LABlab(17.28, 31.08, -35.95)
CIE-LCHlch(17.28, 47.53, 310.85°)
OKLaboklab(30.06% 0.058 -0.1025)
OKLCHoklch(30.06% 0.118 299.5)
XYZxyz(4.0436, 2.3622, 11.0672)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38195F #405F19
analogous
#191D5F #38195F #5B195F
triadic
#38195F #5F3819 #195F38
tetradic
#38195F #5F191D #405F19 #195F5B
square
#38195F #5F191D #405F19 #195F5B
split-complementary
#38195F #5F5B19 #1D5F19
monochromatic
#0E0618 #1B0C2F #38195F #55268F #7132C0

Accessibility & contrast

On white

14.26
#38195F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38195F
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38195F#FFFFFF#000000##FFFFFF
##38195F1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A61
Deuteranopia (green-blind)
#002A5E
Tritanopia (blue-blind)
#2F2A3A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #38195f;
/* rgb */ color: rgb(56, 25, 95);
/* oklch */ color: oklch(30.1% 0.118 299.5);
Tailwind
colors: {
  custom: {
    50: '#73588d',
    500: '#38195f',
    950: '#000000',
  },
}
SCSS
$custom: #38195f;
$custom-light: #73588d;
$custom-dark: #000000;
JSON
{
  "hex": "#38195f",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 95
  },
  "hsl": {
    "h": 266.571,
    "s": 58.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.30063,
    "c": 0.11777,
    "h": 299.5
  },
  "luminance": 0.02362
}

Semantic roles & 50–950 ramp

primary
#38195F
secondary
#6F953F
accent
#E2469D
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #38195F

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

Preview Lab → · Contrast checker → · Palette generator →

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