#323271#323271

#323271 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.4% C 0.106 H 279.5°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#323271
RGBrgb(50, 50, 113)
HSLhsl(240, 39%, 32%)
HSVhsv(240, 56%, 44%)
CMYKcmyk(55.8%, 55.8%, 0%, 55.7%)
CIE-LABlab(24.17, 19.51, -36.58)
CIE-LCHlch(24.17, 41.46, 298.07°)
OKLaboklab(35.4% 0.0175 -0.1045)
OKLCHoklch(35.4% 0.106 279.5)
XYZxyz(5.4357, 4.1512, 16.1344)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#323271 #717132
analogous
#325271 #323271 #523271
triadic
#323271 #713232 #327132
tetradic
#323271 #713252 #717132 #327152
square
#323271 #713252 #717132 #327152
split-complementary
#323271 #715232 #527132
monochromatic
#0C0C1C #1F1F47 #323271 #45459B #6363BA

Accessibility & contrast

On white

11.47
#323271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#323271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #323271
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##323271#FFFFFF#000000##FFFFFF
##3232711.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3C73
Deuteranopia (green-blind)
#053770
Tritanopia (blue-blind)
#16404C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #323271;
/* rgb */ color: rgb(50, 50, 113);
/* oklch */ color: oklch(35.4% 0.106 279.5);
Tailwind
colors: {
  custom: {
    50: '#70699a',
    500: '#323271',
    950: '#000000',
  },
}
SCSS
$custom: #323271;
$custom-light: #70699a;
$custom-dark: #000000;
JSON
{
  "hex": "#323271",
  "rgb": {
    "r": 50,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 240,
    "s": 38.65,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35401,
    "c": 0.10601,
    "h": 279.5
  },
  "luminance": 0.04152
}

Semantic roles & 50–950 ramp

primary
#323271
secondary
#A2A25D
accent
#CF59CF
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #323271

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

Preview Lab → · Contrast checker → · Palette generator →

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