#31328F#31328F

#31328F is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.9% C 0.150 H 276.1°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#31328F
RGBrgb(49, 50, 143)
HSLhsl(239, 49%, 38%)
HSVhsv(239, 66%, 56%)
CMYKcmyk(65.7%, 65%, 0%, 43.9%)
CIE-LABlab(26.50, 29.98, -51.67)
CIE-LCHlch(26.50, 59.73, 300.12°)
OKLaboklab(37.86% 0.0158 -0.1489)
OKLCHoklch(37.86% 0.15 276.1)
XYZxyz(7.3635, 4.9167, 26.5423)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31328F #8F8E31
analogous
#31618F #31328F #5F318F
triadic
#31328F #8F3132 #328F31
tetradic
#31328F #8F3161 #8F8E31 #318F5F
square
#31328F #8F3161 #8F8E31 #318F5F
split-complementary
#31328F #8F5F31 #618F31
monochromatic
#121234 #212261 #31328F #4142BD #6D6ECD

Accessibility & contrast

On white

10.59
#31328F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#31328F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31328F
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31328F#FFFFFF#000000##FFFFFF
##31328F1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #31328f;
/* rgb */ color: rgb(49, 50, 143);
/* oklch */ color: oklch(37.9% 0.150 276.1);
Tailwind
colors: {
  custom: {
    50: '#756ab1',
    500: '#31328f',
    950: '#000000',
  },
}
SCSS
$custom: #31328f;
$custom-light: #756ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#31328f",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 143
  },
  "hsl": {
    "h": 239.362,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37862,
    "c": 0.14976,
    "h": 276.1
  },
  "luminance": 0.04917
}

Semantic roles & 50–950 ramp

primary
#31328F
secondary
#B5B467
accent
#D74FD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #31328F

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

Preview Lab → · Contrast checker → · Palette generator →

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