#393271#393271

#393271 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 36.0% C 0.105 H 284.9°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#393271
RGBrgb(57, 50, 113)
HSLhsl(247, 39%, 32%)
HSVhsv(247, 56%, 44%)
CMYKcmyk(49.6%, 55.8%, 0%, 55.7%)
CIE-LABlab(24.77, 21.18, -35.57)
CIE-LCHlch(24.77, 41.40, 300.77°)
OKLaboklab(36.01% 0.0269 -0.1014)
OKLCHoklch(36.01% 0.105 284.9)
XYZxyz(5.8077, 4.3430, 16.1519)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#393271 #6A7132
analogous
#324B71 #393271 #593271
triadic
#393271 #713932 #327139
tetradic
#393271 #71324B #6A7132 #327159
square
#393271 #71324B #6A7132 #327159
split-complementary
#393271 #715932 #4B7132
monochromatic
#0E0C1C #241F47 #393271 #4E459B #6D63BA

Accessibility & contrast

On white

11.24
#393271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#393271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #393271
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##393271#FFFFFF#000000##FFFFFF
##3932711.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123D73
Deuteranopia (green-blind)
#0F3970
Tritanopia (blue-blind)
#26404C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #393271;
/* rgb */ color: rgb(57, 50, 113);
/* oklch */ color: oklch(36.0% 0.105 284.9);
Tailwind
colors: {
  custom: {
    50: '#746a9a',
    500: '#393271',
    950: '#000000',
  },
}
SCSS
$custom: #393271;
$custom-light: #746a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#393271",
  "rgb": {
    "r": 57,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 246.667,
    "s": 38.65,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36009,
    "c": 0.10488,
    "h": 284.9
  },
  "luminance": 0.04343
}

Semantic roles & 50–950 ramp

primary
#393271
secondary
#9AA25D
accent
#CF59C2
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #393271

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

Preview Lab → · Contrast checker → · Palette generator →

#393271 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva