#31329A#31329A

#31329A is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.9% C 0.165 H 275.2°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#31329A
RGBrgb(49, 50, 154)
HSLhsl(239, 52%, 40%)
HSVhsv(239, 68%, 60%)
CMYKcmyk(68.2%, 67.5%, 0%, 39.6%)
CIE-LABlab(27.48, 33.86, -56.81)
CIE-LCHlch(27.48, 66.14, 300.79°)
OKLaboklab(38.88% 0.0148 -0.164)
OKLCHoklch(38.88% 0.165 275.2)
XYZxyz(8.2380, 5.2665, 31.1480)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31329A #9A9931
analogous
#31669A #31329A #65319A
triadic
#31329A #9A3132 #329A31
tetradic
#31329A #9A3166 #9A9931 #319A65
square
#31329A #9A3166 #9A9931 #319A65
split-complementary
#31329A #9A6531 #669A31
monochromatic
#13143D #22236C #31329A #4546C4 #7374D2

Accessibility & contrast

On white

10.23
#31329A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#31329A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31329A
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31329A#FFFFFF#000000##FFFFFF
##31329A1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#003C98
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #31329a;
/* rgb */ color: rgb(49, 50, 154);
/* oklch */ color: oklch(38.9% 0.165 275.2);
Tailwind
colors: {
  custom: {
    50: '#776ab9',
    500: '#31329a',
    950: '#000000',
  },
}
SCSS
$custom: #31329a;
$custom-light: #776ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#31329a",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 154
  },
  "hsl": {
    "h": 239.429,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38884,
    "c": 0.16468,
    "h": 275.2
  },
  "luminance": 0.05267
}

Semantic roles & 50–950 ramp

primary
#31329A
secondary
#BABA6C
accent
#DA4DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #31329A

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

Preview Lab → · Contrast checker → · Palette generator →

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