#31328C#31328C

#31328C is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.6% C 0.146 H 276.3°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#31328C
RGBrgb(49, 50, 140)
HSLhsl(239, 48%, 37%)
HSVhsv(239, 65%, 55%)
CMYKcmyk(65%, 64.3%, 0%, 45.1%)
CIE-LABlab(26.24, 28.91, -50.23)
CIE-LCHlch(26.24, 57.96, 299.92°)
OKLaboklab(37.59% 0.016 -0.1447)
OKLCHoklch(37.59% 0.146 276.3)
XYZxyz(7.1393, 4.8270, 25.3613)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31328C #8C8B31
analogous
#315F8C #31328C #5E318C
triadic
#31328C #8C3132 #328C31
tetradic
#31328C #8C315F #8C8B31 #318C5E
square
#31328C #8C315F #8C8B31 #318C5E
split-complementary
#31328C #8C5E31 #5F8C31
monochromatic
#111231 #21225F #31328C #4142B9 #6C6DCC

Accessibility & contrast

On white

10.68
#31328C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31328C
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31328C#FFFFFF#000000##FFFFFF
##31328C1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #31328c;
/* rgb */ color: rgb(49, 50, 140);
/* oklch */ color: oklch(37.6% 0.146 276.3);
Tailwind
colors: {
  custom: {
    50: '#746aae',
    500: '#31328c',
    950: '#000000',
  },
}
SCSS
$custom: #31328c;
$custom-light: #746aae;
$custom-dark: #000000;
JSON
{
  "hex": "#31328c",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 140
  },
  "hsl": {
    "h": 239.341,
    "s": 48.148,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37591,
    "c": 0.1456,
    "h": 276.3
  },
  "luminance": 0.04828
}

Semantic roles & 50–950 ramp

primary
#31328C
secondary
#B3B266
accent
#D650D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #31328C

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

Preview Lab → · Contrast checker → · Palette generator →

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