#31508B#31508B

#31508B is a dark, moderate blue. Relative luminance 0.083; OKLCH L 43.8% C 0.104 H 262.1°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#31508B
RGBrgb(49, 80, 139)
HSLhsl(219, 48%, 37%)
HSVhsv(219, 65%, 55%)
CMYKcmyk(64.7%, 42.4%, 0%, 45.5%)
CIE-LABlab(34.51, 8.45, -36.28)
CIE-LCHlch(34.51, 37.25, 283.11°)
OKLaboklab(43.81% -0.0144 -0.1033)
OKLCHoklch(43.81% 0.104 262.1)
XYZxyz(8.7939, 8.2536, 25.5508)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31508B #8B6C31
analogous
#317D8B #31508B #3F318B
triadic
#31508B #8B3150 #508B31
tetradic
#31508B #8B317D #8B6C31 #318B3F
square
#31508B #8B317D #8B6C31 #318B3F
split-complementary
#31508B #8B3F31 #7D8B31
monochromatic
#111C31 #21365E #31508B #416AB8 #6B8CCB

Accessibility & contrast

On white

7.92
#31508B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#31508B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31508B
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31508B#FFFFFF#000000##FFFFFF
##31508B1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35568D
Deuteranopia (green-blind)
#284D8A
Tritanopia (blue-blind)
#005D66
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #31508b;
/* rgb */ color: rgb(49, 80, 139);
/* oklch */ color: oklch(43.8% 0.104 262.1);
Tailwind
colors: {
  custom: {
    50: '#7280ad',
    500: '#31508b',
    950: '#000000',
  },
}
SCSS
$custom: #31508b;
$custom-light: #7280ad;
$custom-dark: #000000;
JSON
{
  "hex": "#31508b",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 139
  },
  "hsl": {
    "h": 219.333,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.43809,
    "c": 0.10433,
    "h": 262.1
  },
  "luminance": 0.08254
}

Semantic roles & 50–950 ramp

primary
#31508B
secondary
#B29865
accent
#A950D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #31508B

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

Preview Lab → · Contrast checker → · Palette generator →

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