#38186E#38186E

#38186E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.138 H 293.8°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#38186E
RGBrgb(56, 24, 110)
HSLhsl(262, 64%, 26%)
HSVhsv(262, 78%, 43%)
CMYKcmyk(49.1%, 78.2%, 0%, 56.9%)
CIE-LABlab(18.45, 35.95, -43.90)
CIE-LCHlch(18.45, 56.74, 309.31°)
OKLaboklab(31.31% 0.0556 -0.1259)
OKLCHoklch(31.31% 0.138 293.8)
XYZxyz(4.7712, 2.6197, 15.0031)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38186E #4E6E18
analogous
#18236E #38186E #63186E
triadic
#38186E #6E3818 #186E38
tetradic
#38186E #6E1823 #4E6E18 #186E63
square
#38186E #6E1823 #4E6E18 #186E63
split-complementary
#38186E #6E6318 #236E18
monochromatic
#0D0519 #1E0D3C #38186E #5223A0 #6B2FD2

Accessibility & contrast

On white

13.78
#38186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#38186E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38186E
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38186E#FFFFFF#000000##FFFFFF
##38186E1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E70
Deuteranopia (green-blind)
#002B6C
Tritanopia (blue-blind)
#282F42
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #38186e;
/* rgb */ color: rgb(56, 24, 110);
/* oklch */ color: oklch(31.3% 0.138 293.8);
Tailwind
colors: {
  custom: {
    50: '#755898',
    500: '#38186e',
    950: '#000000',
  },
}
SCSS
$custom: #38186e;
$custom-light: #755898;
$custom-dark: #000000;
JSON
{
  "hex": "#38186e",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 262.326,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31313,
    "c": 0.13762,
    "h": 293.8
  },
  "luminance": 0.0262
}

Semantic roles & 50–950 ramp

primary
#38186E
secondary
#7EA43E
accent
#E741A9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #38186E

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

Preview Lab → · Contrast checker → · Palette generator →

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