#31327A#31327A

#31327A is a dark, moderate blue. Relative luminance 0.043; OKLCH L 36.0% C 0.120 H 277.9°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#31327A
RGBrgb(49, 50, 122)
HSLhsl(239, 43%, 34%)
HSVhsv(239, 60%, 48%)
CMYKcmyk(59.8%, 59%, 0%, 52.2%)
CIE-LABlab(24.76, 22.49, -41.35)
CIE-LCHlch(24.76, 47.07, 298.54°)
OKLaboklab(36.04% 0.0166 -0.1186)
OKLCHoklch(36.04% 0.12 277.9)
XYZxyz(5.9190, 4.3389, 18.9342)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31327A #7A7931
analogous
#31567A #31327A #54317A
triadic
#31327A #7A3132 #327A31
tetradic
#31327A #7A3156 #7A7931 #317A54
square
#31327A #7A3156 #7A7931 #317A54
split-complementary
#31327A #7A5431 #567A31
monochromatic
#0E0E23 #1F204E #31327A #4344A6 #6466C1

Accessibility & contrast

On white

11.24
#31327A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#31327A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31327A
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31327A#FFFFFF#000000##FFFFFF
##31327A1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7C
Deuteranopia (green-blind)
#003879
Tritanopia (blue-blind)
#044351
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31327a;
/* rgb */ color: rgb(49, 50, 122);
/* oklch */ color: oklch(36.0% 0.120 277.9);
Tailwind
colors: {
  custom: {
    50: '#716aa1',
    500: '#31327a',
    950: '#000000',
  },
}
SCSS
$custom: #31327a;
$custom-light: #716aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#31327a",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 122
  },
  "hsl": {
    "h": 239.178,
    "s": 42.69,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36041,
    "c": 0.11976,
    "h": 277.9
  },
  "luminance": 0.04339
}

Semantic roles & 50–950 ramp

primary
#31327A
secondary
#A8A75E
accent
#D155D2
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #31327A

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

Preview Lab → · Contrast checker → · Palette generator →

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