#31518D#31518D

#31518D is a dark, moderate blue. Relative luminance 0.085; OKLCH L 44.2% C 0.106 H 261.8°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#31518D
RGBrgb(49, 81, 141)
HSLhsl(219, 48%, 37%)
HSVhsv(219, 65%, 55%)
CMYKcmyk(65.2%, 42.6%, 0%, 44.7%)
CIE-LABlab(34.92, 8.53, -36.84)
CIE-LCHlch(34.92, 37.81, 283.03°)
OKLaboklab(44.17% -0.015 -0.1049)
OKLCHoklch(44.17% 0.106 261.8)
XYZxyz(9.0151, 8.4601, 26.3520)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31518D #8D6D31
analogous
#317F8D #31518D #3F318D
triadic
#31518D #8D3151 #518D31
tetradic
#31518D #8D317F #8D6D31 #318D3F
square
#31518D #8D317F #8D6D31 #318D3F
split-complementary
#31518D #8D3F31 #7F8D31
monochromatic
#111D32 #213760 #31518D #416BBA #6C8ECC

Accessibility & contrast

On white

7.80
#31518D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#31518D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31518D
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31518D#FFFFFF#000000##FFFFFF
##31518D1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36578F
Deuteranopia (green-blind)
#284E8C
Tritanopia (blue-blind)
#005F68
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #31518d;
/* rgb */ color: rgb(49, 81, 141);
/* oklch */ color: oklch(44.2% 0.106 261.8);
Tailwind
colors: {
  custom: {
    50: '#7381af',
    500: '#31518d',
    950: '#000000',
  },
}
SCSS
$custom: #31518d;
$custom-light: #7381af;
$custom-dark: #000000;
JSON
{
  "hex": "#31518d",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 141
  },
  "hsl": {
    "h": 219.13,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.44171,
    "c": 0.10601,
    "h": 261.8
  },
  "luminance": 0.08461
}

Semantic roles & 50–950 ramp

primary
#31518D
secondary
#B49966
accent
#A950D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #31518D

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

Preview Lab → · Contrast checker → · Palette generator →

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