#381658#381658

#381658 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.0% C 0.113 H 303.6°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#381658
RGBrgb(56, 22, 88)
HSLhsl(271, 60%, 22%)
HSVhsv(271, 75%, 35%)
CMYKcmyk(36.4%, 75%, 0%, 65.5%)
CIE-LABlab(16.10, 30.77, -33.19)
CIE-LCHlch(16.10, 45.26, 312.83°)
OKLaboklab(29.03% 0.0627 -0.0944)
OKLCHoklch(29.03% 0.113 303.6)
XYZxyz(3.6788, 2.1192, 9.4459)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381658 #365816
analogous
#171658 #381658 #581657
triadic
#381658 #583816 #165838
tetradic
#381658 #581716 #365816 #165758
square
#381658 #581716 #365816 #165758
split-complementary
#381658 #575816 #165817
monochromatic
#100618 #190A27 #381658 #572289 #762EBA

Accessibility & contrast

On white

14.75
#381658 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#381658 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381658
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381658#FFFFFF#000000##FFFFFF
##3816581.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275A
Deuteranopia (green-blind)
#002857
Tritanopia (blue-blind)
#322535
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #381658;
/* rgb */ color: rgb(56, 22, 88);
/* oklch */ color: oklch(29.0% 0.113 303.6);
Tailwind
colors: {
  custom: {
    50: '#725688',
    500: '#381658',
    950: '#000000',
  },
}
SCSS
$custom: #381658;
$custom-light: #725688;
$custom-dark: #000000;
JSON
{
  "hex": "#381658",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 88
  },
  "hsl": {
    "h": 270.909,
    "s": 60,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29033,
    "c": 0.11333,
    "h": 303.6
  },
  "luminance": 0.02119
}

Semantic roles & 50–950 ramp

primary
#381658
secondary
#648F3B
accent
#E34591
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381658

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

Preview Lab → · Contrast checker → · Palette generator →

#381658 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva