#31329C#31329C

#31329C is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.167 H 275.0°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#31329C
RGBrgb(49, 50, 156)
HSLhsl(239, 52%, 40%)
HSVhsv(239, 69%, 61%)
CMYKcmyk(68.6%, 67.9%, 0%, 38.8%)
CIE-LABlab(27.67, 34.56, -57.73)
CIE-LCHlch(27.67, 67.28, 300.90°)
OKLaboklab(39.07% 0.0146 -0.1667)
OKLCHoklch(39.07% 0.167 275)
XYZxyz(8.4060, 5.3337, 32.0326)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31329C #9C9B31
analogous
#31689C #31329C #65319C
triadic
#31329C #9C3132 #329C31
tetradic
#31329C #9C3168 #9C9B31 #319C65
square
#31329C #9C3168 #9C9B31 #319C65
split-complementary
#31329C #9C6531 #689C31
monochromatic
#14143F #22236D #31329C #4547C5 #7475D3

Accessibility & contrast

On white

10.16
#31329C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#31329C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31329C
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31329C#FFFFFF#000000##FFFFFF
##31329C1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31329c;
/* rgb */ color: rgb(49, 50, 156);
/* oklch */ color: oklch(39.1% 0.167 275.0);
Tailwind
colors: {
  custom: {
    50: '#786aba',
    500: '#31329c',
    950: '#000000',
  },
}
SCSS
$custom: #31329c;
$custom-light: #786aba;
$custom-dark: #000000;
JSON
{
  "hex": "#31329c",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 156
  },
  "hsl": {
    "h": 239.439,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39074,
    "c": 0.16734,
    "h": 275
  },
  "luminance": 0.05334
}

Semantic roles & 50–950 ramp

primary
#31329C
secondary
#BBBB6D
accent
#DA4CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #31329C

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

Preview Lab → · Contrast checker → · Palette generator →

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