#31329B#31329B

#31329B is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.166 H 275.1°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#31329B
RGBrgb(49, 50, 155)
HSLhsl(239, 52%, 40%)
HSVhsv(239, 68%, 61%)
CMYKcmyk(68.4%, 67.7%, 0%, 39.2%)
CIE-LABlab(27.57, 34.21, -57.27)
CIE-LCHlch(27.57, 66.71, 300.85°)
OKLaboklab(38.98% 0.0147 -0.1653)
OKLCHoklch(38.98% 0.166 275.1)
XYZxyz(8.3217, 5.3000, 31.5884)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31329B #9B9A31
analogous
#31679B #31329B #65319B
triadic
#31329B #9B3132 #329B31
tetradic
#31329B #9B3167 #9B9A31 #319B65
square
#31329B #9B3167 #9B9A31 #319B65
split-complementary
#31329B #9B6531 #679B31
monochromatic
#14143E #22236D #31329B #4546C4 #7374D3

Accessibility & contrast

On white

10.19
#31329B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#31329B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31329B
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31329B#FFFFFF#000000##FFFFFF
##31329B1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#003C99
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #31329b;
/* rgb */ color: rgb(49, 50, 155);
/* oklch */ color: oklch(39.0% 0.166 275.1);
Tailwind
colors: {
  custom: {
    50: '#786ab9',
    500: '#31329b',
    950: '#000000',
  },
}
SCSS
$custom: #31329b;
$custom-light: #786ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#31329b",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 155
  },
  "hsl": {
    "h": 239.434,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.38979,
    "c": 0.166,
    "h": 275.1
  },
  "luminance": 0.05301
}

Semantic roles & 50–950 ramp

primary
#31329B
secondary
#BBBA6D
accent
#DA4CDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #31329B

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

Preview Lab → · Contrast checker → · Palette generator →

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