#382EA3#382EA3

#382EA3 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.6% C 0.179 H 278.2°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#382EA3
RGBrgb(56, 46, 163)
HSLhsl(245, 56%, 41%)
HSVhsv(245, 72%, 64%)
CMYKcmyk(65.6%, 71.8%, 0%, 36.1%)
CIE-LABlab(27.95, 40.28, -61.50)
CIE-LCHlch(27.95, 73.52, 303.22°)
OKLaboklab(39.61% 0.0255 -0.1775)
OKLCHoklch(39.61% 0.179 278.2)
XYZxyz(9.2166, 5.4383, 35.2072)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382EA3 #99A32E
analogous
#2E5EA3 #382EA3 #722EA3
triadic
#382EA3 #A3382E #2EA338
tetradic
#382EA3 #A32E5E #99A32E #2EA372
square
#382EA3 #A32E5E #99A32E #2EA372
split-complementary
#382EA3 #A3722E #5EA32E
monochromatic
#171344 #282173 #382EA3 #4F44CA #7C74D8

Accessibility & contrast

On white

10.06
#382EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#382EA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382EA3
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382EA3#FFFFFF#000000##FFFFFF
##382EA31.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A6
Deuteranopia (green-blind)
#003DA1
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #382ea3;
/* rgb */ color: rgb(56, 46, 163);
/* oklch */ color: oklch(39.6% 0.179 278.2);
Tailwind
colors: {
  custom: {
    50: '#7d68bf',
    500: '#382ea3',
    950: '#000000',
  },
}
SCSS
$custom: #382ea3;
$custom-light: #7d68bf;
$custom-dark: #000000;
JSON
{
  "hex": "#382ea3",
  "rgb": {
    "r": 56,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 245.128,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39611,
    "c": 0.17934,
    "h": 278.2
  },
  "luminance": 0.05439
}

Semantic roles & 50–950 ramp

primary
#382EA3
secondary
#B8BF6D
accent
#DF49D2
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #382EA3

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

Preview Lab → · Contrast checker → · Palette generator →

#382EA3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva