#31329E#31329E

#31329E is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.3% C 0.170 H 274.8°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#31329E
RGBrgb(49, 50, 158)
HSLhsl(239, 53%, 41%)
HSVhsv(239, 69%, 62%)
CMYKcmyk(69%, 68.4%, 0%, 38%)
CIE-LABlab(27.85, 35.25, -58.65)
CIE-LCHlch(27.85, 68.43, 301.01°)
OKLaboklab(39.27% 0.0144 -0.1694)
OKLCHoklch(39.27% 0.17 274.8)
XYZxyz(8.5767, 5.4020, 32.9318)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31329E #9E9D31
analogous
#31689E #31329E #67319E
triadic
#31329E #9E3132 #329E31
tetradic
#31329E #9E3168 #9E9D31 #319E67
square
#31329E #9E3168 #9E9D31 #319E67
split-complementary
#31329E #9E6731 #689E31
monochromatic
#141441 #23236F #31329E #4648C6 #7576D4

Accessibility & contrast

On white

10.09
#31329E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#31329E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31329E
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31329E#FFFFFF#000000##FFFFFF
##31329E1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #31329e;
/* rgb */ color: rgb(49, 50, 158);
/* oklch */ color: oklch(39.3% 0.170 274.8);
Tailwind
colors: {
  custom: {
    50: '#786abc',
    500: '#31329e',
    950: '#000000',
  },
}
SCSS
$custom: #31329e;
$custom-light: #786abc;
$custom-dark: #000000;
JSON
{
  "hex": "#31329e",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 158
  },
  "hsl": {
    "h": 239.45,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39265,
    "c": 0.16998,
    "h": 274.8
  },
  "luminance": 0.05403
}

Semantic roles & 50–950 ramp

primary
#31329E
secondary
#BCBC6E
accent
#DB4CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #31329E

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

Preview Lab → · Contrast checker → · Palette generator →

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