#382899#382899

#382899 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.7% C 0.173 H 280.6°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#382899
RGBrgb(56, 40, 153)
HSLhsl(248, 59%, 38%)
HSVhsv(248, 74%, 60%)
CMYKcmyk(63.4%, 73.9%, 0%, 40%)
CIE-LABlab(25.74, 40.47, -59.05)
CIE-LCHlch(25.74, 71.59, 304.43°)
OKLaboklab(37.74% 0.0317 -0.1703)
OKLCHoklch(37.74% 0.173 280.6)
XYZxyz(8.1376, 4.6576, 30.6010)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382899 #899928
analogous
#285099 #382899 #712899
triadic
#382899 #993828 #289938
tetradic
#382899 #992850 #899928 #289971
square
#382899 #992850 #899928 #289971
split-complementary
#382899 #997128 #509928
monochromatic
#140F38 #261B68 #382899 #4A35CA #7565D7

Accessibility & contrast

On white

10.87
#382899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#382899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382899
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382899#FFFFFF#000000##FFFFFF
##3828991.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419C
Deuteranopia (green-blind)
#003997
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #382899;
/* rgb */ color: rgb(56, 40, 153);
/* oklch */ color: oklch(37.7% 0.173 280.6);
Tailwind
colors: {
  custom: {
    50: '#7b64b8',
    500: '#382899',
    950: '#000000',
  },
}
SCSS
$custom: #382899;
$custom-light: #7b64b8;
$custom-dark: #000000;
JSON
{
  "hex": "#382899",
  "rgb": {
    "r": 56,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 248.496,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.3774,
    "c": 0.17325,
    "h": 280.6
  },
  "luminance": 0.04658
}

Semantic roles & 50–950 ramp

primary
#382899
secondary
#AFBD60
accent
#E246CC
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #382899

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

Preview Lab → · Contrast checker → · Palette generator →

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