#382BA7#382BA7

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

Color values

HEX#382BA7
RGBrgb(56, 43, 167)
HSLhsl(246, 59%, 41%)
HSVhsv(246, 74%, 65%)
CMYKcmyk(66.5%, 74.3%, 0%, 34.5%)
CIE-LABlab(27.73, 43.28, -64.28)
CIE-LCHlch(27.73, 77.49, 303.96°)
OKLaboklab(39.57% 0.0267 -0.1856)
OKLCHoklch(39.57% 0.188 278.2)
XYZxyz(9.4676, 5.3577, 37.0869)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382BA7 #9AA72B
analogous
#2B5CA7 #382BA7 #762BA7
triadic
#382BA7 #A7382B #2BA738
tetradic
#382BA7 #A72B5C #9AA72B #2BA776
square
#382BA7 #A72B5C #9AA72B #2BA776
split-complementary
#382BA7 #A7762B #5CA72B
monochromatic
#171246 #281E76 #382BA7 #5041CE #7D72DB

Accessibility & contrast

On white

10.14
#382BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#382BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382BA7
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382BA7#FFFFFF#000000##FFFFFF
##382BA71.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#003CA5
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #382ba7;
/* rgb */ color: rgb(56, 43, 167);
/* oklch */ color: oklch(39.6% 0.188 278.2);
Tailwind
colors: {
  custom: {
    50: '#7e66c2',
    500: '#382ba7',
    950: '#000000',
  },
}
SCSS
$custom: #382ba7;
$custom-light: #7e66c2;
$custom-dark: #000000;
JSON
{
  "hex": "#382ba7",
  "rgb": {
    "r": 56,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 246.29,
    "s": 59.048,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39575,
    "c": 0.18753,
    "h": 278.2
  },
  "luminance": 0.05359
}

Semantic roles & 50–950 ramp

primary
#382BA7
secondary
#B9C26C
accent
#E246D2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #382BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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