#382FA1#382FA1

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

Color values

HEX#382FA1
RGBrgb(56, 47, 161)
HSLhsl(245, 55%, 41%)
HSVhsv(245, 71%, 63%)
CMYKcmyk(65.2%, 70.8%, 0%, 36.9%)
CIE-LABlab(27.97, 39.03, -60.25)
CIE-LCHlch(27.97, 71.79, 302.93°)
OKLaboklab(39.57% 0.0251 -0.1739)
OKLCHoklch(39.57% 0.176 278.2)
XYZxyz(9.0784, 5.4463, 34.2841)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382FA1 #98A12F
analogous
#2F5FA1 #382FA1 #712FA1
triadic
#382FA1 #A1382F #2FA138
tetradic
#382FA1 #A12F5F #98A12F #2FA171
square
#382FA1 #A12F5F #98A12F #2FA171
split-complementary
#382FA1 #A1712F #5FA12F
monochromatic
#171342 #282172 #382FA1 #4F45C9 #7C74D6

Accessibility & contrast

On white

10.05
#382FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #382FA1
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382FA1#FFFFFF#000000##FFFFFF
##382FA11.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A4
Deuteranopia (green-blind)
#003D9F
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #382fa1;
/* rgb */ color: rgb(56, 47, 161);
/* oklch */ color: oklch(39.6% 0.176 278.2);
Tailwind
colors: {
  custom: {
    50: '#7c69be',
    500: '#382fa1',
    950: '#000000',
  },
}
SCSS
$custom: #382fa1;
$custom-light: #7c69be;
$custom-dark: #000000;
JSON
{
  "hex": "#382fa1",
  "rgb": {
    "r": 56,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 244.737,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39568,
    "c": 0.17569,
    "h": 278.2
  },
  "luminance": 0.05447
}

Semantic roles & 50–950 ramp

primary
#382FA1
secondary
#B8BE6E
accent
#DE4AD2
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #382FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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