#382FA2#382FA2

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

Color values

HEX#382FA2
RGBrgb(56, 47, 162)
HSLhsl(245, 55%, 41%)
HSVhsv(245, 71%, 64%)
CMYKcmyk(65.4%, 71%, 0%, 36.5%)
CIE-LABlab(28.07, 39.36, -60.70)
CIE-LCHlch(28.07, 72.35, 302.96°)
OKLaboklab(39.67% 0.025 -0.1752)
OKLCHoklch(39.67% 0.177 278.1)
XYZxyz(9.1669, 5.4817, 34.7504)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382FA2 #99A22F
analogous
#2F5FA2 #382FA2 #712FA2
triadic
#382FA2 #A2382F #2FA238
tetradic
#382FA2 #A22F5F #99A22F #2FA271
square
#382FA2 #A22F5F #99A22F #2FA271
split-complementary
#382FA2 #A2712F #5FA22F
monochromatic
#171343 #282173 #382FA2 #4F45C9 #7C75D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##382FA2#FFFFFF#000000##FFFFFF
##382FA21.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)
#0047A5
Deuteranopia (green-blind)
#003DA0
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #382fa2;
/* rgb */ color: rgb(56, 47, 162);
/* oklch */ color: oklch(39.7% 0.177 278.1);
Tailwind
colors: {
  custom: {
    50: '#7c69bf',
    500: '#382fa2',
    950: '#000000',
  },
}
SCSS
$custom: #382fa2;
$custom-light: #7c69bf;
$custom-dark: #000000;
JSON
{
  "hex": "#382fa2",
  "rgb": {
    "r": 56,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 244.696,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39666,
    "c": 0.17696,
    "h": 278.1
  },
  "luminance": 0.05482
}

Semantic roles & 50–950 ramp

primary
#382FA2
secondary
#B8BF6E
accent
#DE49D3
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #382FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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