#31508F#31508F

#31508F is a dark, moderate blue. Relative luminance 0.084; OKLCH L 44.1% C 0.110 H 262.9°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#31508F
RGBrgb(49, 80, 143)
HSLhsl(220, 49%, 38%)
HSVhsv(220, 66%, 56%)
CMYKcmyk(65.7%, 44.1%, 0%, 43.9%)
CIE-LABlab(34.75, 9.93, -38.34)
CIE-LCHlch(34.75, 39.60, 284.52°)
OKLaboklab(44.07% -0.0136 -0.1094)
OKLCHoklch(44.07% 0.11 262.9)
XYZxyz(9.0915, 8.3726, 27.1182)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31508F #8F7031
analogous
#317F8F #31508F #41318F
triadic
#31508F #8F3150 #508F31
tetradic
#31508F #8F317F #8F7031 #318F41
square
#31508F #8F317F #8F7031 #318F41
split-complementary
#31508F #8F4131 #7F8F31
monochromatic
#121D34 #213661 #31508F #4169BD #6D8DCD

Accessibility & contrast

On white

7.85
#31508F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#31508F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31508F
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31508F#FFFFFF#000000##FFFFFF
##31508F1.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335691
Deuteranopia (green-blind)
#244E8E
Tritanopia (blue-blind)
#005E68
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #31508f;
/* rgb */ color: rgb(49, 80, 143);
/* oklch */ color: oklch(44.1% 0.110 262.9);
Tailwind
colors: {
  custom: {
    50: '#7380b0',
    500: '#31508f',
    950: '#000000',
  },
}
SCSS
$custom: #31508f;
$custom-light: #7380b0;
$custom-dark: #000000;
JSON
{
  "hex": "#31508f",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 143
  },
  "hsl": {
    "h": 220.213,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.44074,
    "c": 0.1102,
    "h": 262.9
  },
  "luminance": 0.08373
}

Semantic roles & 50–950 ramp

primary
#31508F
secondary
#B59B67
accent
#AB4FD9
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #31508F

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

Preview Lab → · Contrast checker → · Palette generator →

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