#383271#383271

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

Color values

HEX#383271
RGBrgb(56, 50, 113)
HSLhsl(246, 39%, 32%)
HSVhsv(246, 56%, 44%)
CMYKcmyk(50.4%, 55.8%, 0%, 55.7%)
CIE-LABlab(24.68, 20.94, -35.72)
CIE-LCHlch(24.68, 41.41, 300.37°)
OKLaboklab(35.92% 0.0256 -0.1018)
OKLCHoklch(35.92% 0.105 284.1)
XYZxyz(5.7512, 4.3139, 16.1492)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#383271 #6B7132
analogous
#324C71 #383271 #583271
triadic
#383271 #713832 #327138
tetradic
#383271 #71324C #6B7132 #327158
square
#383271 #71324C #6B7132 #327158
split-complementary
#383271 #715832 #4C7132
monochromatic
#0E0C1C #231F47 #383271 #4D459B #6C63BA

Accessibility & contrast

On white

11.27
#383271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#383271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #383271
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##383271#FFFFFF#000000##FFFFFF
##3832711.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113D73
Deuteranopia (green-blind)
#0E3970
Tritanopia (blue-blind)
#24404C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #383271;
/* rgb */ color: rgb(56, 50, 113);
/* oklch */ color: oklch(35.9% 0.105 284.1);
Tailwind
colors: {
  custom: {
    50: '#736a9a',
    500: '#383271',
    950: '#000000',
  },
}
SCSS
$custom: #383271;
$custom-light: #736a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#383271",
  "rgb": {
    "r": 56,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 245.714,
    "s": 38.65,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35918,
    "c": 0.10499,
    "h": 284.1
  },
  "luminance": 0.04314
}

Semantic roles & 50–950 ramp

primary
#383271
secondary
#9BA25D
accent
#CF59C3
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #383271

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

Preview Lab → · Contrast checker → · Palette generator →

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