#31328D#31328D

#31328D is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.7% C 0.147 H 276.2°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#31328D
RGBrgb(49, 50, 141)
HSLhsl(239, 48%, 37%)
HSVhsv(239, 65%, 55%)
CMYKcmyk(65.2%, 64.5%, 0%, 44.7%)
CIE-LABlab(26.32, 29.27, -50.71)
CIE-LCHlch(26.32, 58.55, 299.99°)
OKLaboklab(37.68% 0.016 -0.1461)
OKLCHoklch(37.68% 0.147 276.2)
XYZxyz(7.2134, 4.8567, 25.7514)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31328D #8D8C31
analogous
#31608D #31328D #5E318D
triadic
#31328D #8D3132 #328D31
tetradic
#31328D #8D3160 #8D8C31 #318D5E
square
#31328D #8D3160 #8D8C31 #318D5E
split-complementary
#31328D #8D5E31 #608D31
monochromatic
#111232 #212260 #31328D #4142BA #6C6DCC

Accessibility & contrast

On white

10.65
#31328D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#31328D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31328D
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31328D#FFFFFF#000000##FFFFFF
##31328D1.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #31328d;
/* rgb */ color: rgb(49, 50, 141);
/* oklch */ color: oklch(37.7% 0.147 276.2);
Tailwind
colors: {
  custom: {
    50: '#746aaf',
    500: '#31328d',
    950: '#000000',
  },
}
SCSS
$custom: #31328d;
$custom-light: #746aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#31328d",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 141
  },
  "hsl": {
    "h": 239.348,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37681,
    "c": 0.14699,
    "h": 276.2
  },
  "luminance": 0.04857
}

Semantic roles & 50–950 ramp

primary
#31328D
secondary
#B4B366
accent
#D750D8
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #31328D

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

Preview Lab → · Contrast checker → · Palette generator →

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