#382E98#382E98

#382E98 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.165 H 279.5°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#382E98
RGBrgb(56, 46, 152)
HSLhsl(246, 54%, 39%)
HSVhsv(246, 70%, 60%)
CMYKcmyk(63.2%, 69.7%, 0%, 40.4%)
CIE-LABlab(26.91, 36.64, -56.51)
CIE-LCHlch(26.91, 67.35, 302.96°)
OKLaboklab(38.55% 0.0273 -0.1629)
OKLCHoklch(38.55% 0.165 279.5)
XYZxyz(8.2736, 5.0611, 30.2406)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382E98 #8E982E
analogous
#2E5998 #382E98 #6D2E98
triadic
#382E98 #98382E #2E9838
tetradic
#382E98 #982E59 #8E982E #2E986D
square
#382E98 #982E59 #8E982E #2E986D
split-complementary
#382E98 #986D2E #59982E
monochromatic
#15123A #272069 #382E98 #4B3EC5 #776DD3

Accessibility & contrast

On white

10.44
#382E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#382E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382E98
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382E98#FFFFFF#000000##FFFFFF
##382E981.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #382e98;
/* rgb */ color: rgb(56, 46, 152);
/* oklch */ color: oklch(38.5% 0.165 279.5);
Tailwind
colors: {
  custom: {
    50: '#7a68b7',
    500: '#382e98',
    950: '#000000',
  },
}
SCSS
$custom: #382e98;
$custom-light: #7a68b7;
$custom-dark: #000000;
JSON
{
  "hex": "#382e98",
  "rgb": {
    "r": 56,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 245.66,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38548,
    "c": 0.1652,
    "h": 279.5
  },
  "luminance": 0.05062
}

Semantic roles & 50–950 ramp

primary
#382E98
secondary
#B2BA68
accent
#DD4BCF
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #382E98

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

Preview Lab → · Contrast checker → · Palette generator →

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