#31316F#31316F

#31316F is a dark, moderate blue. Relative luminance 0.040; OKLCH L 35.0% C 0.105 H 279.5°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#31316F
RGBrgb(49, 49, 111)
HSLhsl(240, 39%, 31%)
HSVhsv(240, 56%, 44%)
CMYKcmyk(55.9%, 55.9%, 0%, 56.5%)
CIE-LABlab(23.66, 19.26, -36.12)
CIE-LCHlch(23.66, 40.93, 298.07°)
OKLaboklab(34.96% 0.0173 -0.1032)
OKLCHoklch(34.96% 0.105 279.5)
XYZxyz(5.2333, 3.9970, 15.5316)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31316F #6F6F31
analogous
#31506F #31316F #50316F
triadic
#31316F #6F3131 #316F31
tetradic
#31316F #6F3150 #6F6F31 #316F50
square
#31316F #6F3150 #6F6F31 #316F50
split-complementary
#31316F #6F5031 #506F31
monochromatic
#0C0C1A #1E1E45 #31316F #444499 #6161B9

Accessibility & contrast

On white

11.67
#31316F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#31316F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31316F
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31316F#FFFFFF#000000##FFFFFF
##31316F1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3B71
Deuteranopia (green-blind)
#05366E
Tritanopia (blue-blind)
#163F4B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #31316f;
/* rgb */ color: rgb(49, 49, 111);
/* oklch */ color: oklch(35.0% 0.105 279.5);
Tailwind
colors: {
  custom: {
    50: '#6f6999',
    500: '#31316f',
    950: '#000000',
  },
}
SCSS
$custom: #31316f;
$custom-light: #6f6999;
$custom-dark: #000000;
JSON
{
  "hex": "#31316f",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 111
  },
  "hsl": {
    "h": 240,
    "s": 38.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34957,
    "c": 0.10465,
    "h": 279.5
  },
  "luminance": 0.03997
}

Semantic roles & 50–950 ramp

primary
#31316F
secondary
#A0A05C
accent
#CF59CF
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #31316F

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

Preview Lab → · Contrast checker → · Palette generator →

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