#31508D#31508D

#31508D is a dark, moderate blue. Relative luminance 0.083; OKLCH L 43.9% C 0.107 H 262.5°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#31508D
RGBrgb(49, 80, 141)
HSLhsl(220, 48%, 37%)
HSVhsv(220, 65%, 55%)
CMYKcmyk(65.2%, 43.3%, 0%, 44.7%)
CIE-LABlab(34.63, 9.19, -37.31)
CIE-LCHlch(34.63, 38.43, 283.83°)
OKLaboklab(43.94% -0.014 -0.1063)
OKLCHoklch(43.94% 0.107 262.5)
XYZxyz(8.9413, 8.3126, 26.3274)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31508D #8D6E31
analogous
#317E8D #31508D #40318D
triadic
#31508D #8D3150 #508D31
tetradic
#31508D #8D317E #8D6E31 #318D40
square
#31508D #8D317E #8D6E31 #318D40
split-complementary
#31508D #8D4031 #7E8D31
monochromatic
#111C32 #213660 #31508D #416ABA #6C8DCC

Accessibility & contrast

On white

7.89
#31508D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#31508D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31508D
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31508D#FFFFFF#000000##FFFFFF
##31508D1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34568F
Deuteranopia (green-blind)
#264D8C
Tritanopia (blue-blind)
#005E67
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #31508d;
/* rgb */ color: rgb(49, 80, 141);
/* oklch */ color: oklch(43.9% 0.107 262.5);
Tailwind
colors: {
  custom: {
    50: '#7380af',
    500: '#31508d',
    950: '#000000',
  },
}
SCSS
$custom: #31508d;
$custom-light: #7380af;
$custom-dark: #000000;
JSON
{
  "hex": "#31508d",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 141
  },
  "hsl": {
    "h": 219.783,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.43941,
    "c": 0.10726,
    "h": 262.5
  },
  "luminance": 0.08313
}

Semantic roles & 50–950 ramp

primary
#31508D
secondary
#B49A66
accent
#AA50D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #31508D

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

Preview Lab → · Contrast checker → · Palette generator →

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