#382EA4#382EA4

#382EA4 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.7% C 0.181 H 278.1°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#382EA4
RGBrgb(56, 46, 164)
HSLhsl(245, 56%, 41%)
HSVhsv(245, 72%, 64%)
CMYKcmyk(65.9%, 72%, 0%, 35.7%)
CIE-LABlab(28.05, 40.60, -61.95)
CIE-LCHlch(28.05, 74.07, 303.24°)
OKLaboklab(39.71% 0.0253 -0.1788)
OKLCHoklch(39.71% 0.181 278.1)
XYZxyz(9.3066, 5.4743, 35.6810)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382EA4 #9AA42E
analogous
#2E5FA4 #382EA4 #732EA4
triadic
#382EA4 #A4382E #2EA438
tetradic
#382EA4 #A42E5F #9AA42E #2EA473
square
#382EA4 #A42E5F #9AA42E #2EA473
split-complementary
#382EA4 #A4732E #5FA42E
monochromatic
#171344 #282174 #382EA4 #5045CB #7D74D8

Accessibility & contrast

On white

10.02
#382EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#382EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382EA4
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382EA4#FFFFFF#000000##FFFFFF
##382EA41.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A8
Deuteranopia (green-blind)
#003DA2
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #382ea4;
/* rgb */ color: rgb(56, 46, 164);
/* oklch */ color: oklch(39.7% 0.181 278.1);
Tailwind
colors: {
  custom: {
    50: '#7d68c0',
    500: '#382ea4',
    950: '#000000',
  },
}
SCSS
$custom: #382ea4;
$custom-light: #7d68c0;
$custom-dark: #000000;
JSON
{
  "hex": "#382ea4",
  "rgb": {
    "r": 56,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 245.085,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.3971,
    "c": 0.18061,
    "h": 278.1
  },
  "luminance": 0.05475
}

Semantic roles & 50–950 ramp

primary
#382EA4
secondary
#B9C06E
accent
#DF48D3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #382EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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