#382D9F#382D9F

#382D9F is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.1% C 0.175 H 278.8°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#382D9F
RGBrgb(56, 45, 159)
HSLhsl(246, 56%, 40%)
HSVhsv(246, 72%, 62%)
CMYKcmyk(64.8%, 71.7%, 0%, 37.6%)
CIE-LABlab(27.35, 39.55, -60.05)
CIE-LCHlch(27.35, 71.91, 303.37°)
OKLaboklab(39.07% 0.0269 -0.1733)
OKLCHoklch(39.07% 0.175 278.8)
XYZxyz(8.8253, 5.2200, 33.3367)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382D9F #949F2D
analogous
#2D5B9F #382D9F #712D9F
triadic
#382D9F #9F382D #2D9F38
tetradic
#382D9F #9F2D5B #949F2D #2D9F71
square
#382D9F #9F2D5B #949F2D #2D9F71
split-complementary
#382D9F #9F712D #5B9F2D
monochromatic
#161240 #27206F #382D9F #4D40C9 #7A70D6

Accessibility & contrast

On white

10.27
#382D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#382D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382D9F
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382D9F#FFFFFF#000000##FFFFFF
##382D9F1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#003C9D
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #382d9f;
/* rgb */ color: rgb(56, 45, 159);
/* oklch */ color: oklch(39.1% 0.175 278.8);
Tailwind
colors: {
  custom: {
    50: '#7c67bc',
    500: '#382d9f',
    950: '#000000',
  },
}
SCSS
$custom: #382d9f;
$custom-light: #7c67bc;
$custom-dark: #000000;
JSON
{
  "hex": "#382d9f",
  "rgb": {
    "r": 56,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 245.789,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.39068,
    "c": 0.17537,
    "h": 278.8
  },
  "luminance": 0.05221
}

Semantic roles & 50–950 ramp

primary
#382D9F
secondary
#B6BE6A
accent
#DF49D1
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #382D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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