#31328B#31328B

#31328B is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.5% C 0.144 H 276.4°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#31328B
RGBrgb(49, 50, 139)
HSLhsl(239, 48%, 37%)
HSVhsv(239, 65%, 55%)
CMYKcmyk(64.7%, 64%, 0%, 45.5%)
CIE-LABlab(26.15, 28.56, -49.75)
CIE-LCHlch(26.15, 57.37, 299.85°)
OKLaboklab(37.5% 0.0161 -0.1433)
OKLCHoklch(37.5% 0.144 276.4)
XYZxyz(7.0659, 4.7977, 24.9748)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31328B #8B8A31
analogous
#315F8B #31328B #5D318B
triadic
#31328B #8B3132 #328B31
tetradic
#31328B #8B315F #8B8A31 #318B5D
square
#31328B #8B315F #8B8A31 #318B5D
split-complementary
#31328B #8B5D31 #5F8B31
monochromatic
#111131 #21225E #31328B #4142B8 #6B6CCB

Accessibility & contrast

On white

10.72
#31328B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#31328B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31328B
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31328B#FFFFFF#000000##FFFFFF
##31328B1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #31328b;
/* rgb */ color: rgb(49, 50, 139);
/* oklch */ color: oklch(37.5% 0.144 276.4);
Tailwind
colors: {
  custom: {
    50: '#746aae',
    500: '#31328b',
    950: '#000000',
  },
}
SCSS
$custom: #31328b;
$custom-light: #746aae;
$custom-dark: #000000;
JSON
{
  "hex": "#31328b",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 139
  },
  "hsl": {
    "h": 239.333,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37502,
    "c": 0.1442,
    "h": 276.4
  },
  "luminance": 0.04798
}

Semantic roles & 50–950 ramp

primary
#31328B
secondary
#B2B265
accent
#D650D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #31328B

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

Preview Lab → · Contrast checker → · Palette generator →

#31328B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva