#382F97#382F97

#382F97 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.163 H 279.4°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#382F97
RGBrgb(56, 47, 151)
HSLhsl(245, 53%, 39%)
HSVhsv(245, 69%, 59%)
CMYKcmyk(62.9%, 68.9%, 0%, 40.8%)
CIE-LABlab(27.04, 35.70, -55.68)
CIE-LCHlch(27.04, 66.15, 302.67°)
OKLaboklab(38.61% 0.0267 -0.1605)
OKLCHoklch(38.61% 0.163 279.4)
XYZxyz(8.2315, 5.1075, 29.8242)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382F97 #8E972F
analogous
#2F5A97 #382F97 #6C2F97
triadic
#382F97 #97382F #2F9738
tetradic
#382F97 #972F5A #8E972F #2F976C
square
#382F97 #972F5A #8E972F #2F976C
split-complementary
#382F97 #976C2F #5A972F
monochromatic
#15123A #272068 #382F97 #4B40C3 #776ED2

Accessibility & contrast

On white

10.39
#382F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#382F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382F97
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382F97#FFFFFF#000000##FFFFFF
##382F971.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #382f97;
/* rgb */ color: rgb(56, 47, 151);
/* oklch */ color: oklch(38.6% 0.163 279.4);
Tailwind
colors: {
  custom: {
    50: '#7a68b7',
    500: '#382f97',
    950: '#000000',
  },
}
SCSS
$custom: #382f97;
$custom-light: #7a68b7;
$custom-dark: #000000;
JSON
{
  "hex": "#382f97",
  "rgb": {
    "r": 56,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 245.192,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38614,
    "c": 0.16269,
    "h": 279.4
  },
  "luminance": 0.05108
}

Semantic roles & 50–950 ramp

primary
#382F97
secondary
#B2B968
accent
#DC4CCF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #382F97

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

Preview Lab → · Contrast checker → · Palette generator →

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