#31508E#31508E

#31508E is a dark, moderate blue. Relative luminance 0.083; OKLCH L 44.0% C 0.109 H 262.7°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#31508E
RGBrgb(49, 80, 142)
HSLhsl(220, 49%, 37%)
HSVhsv(220, 65%, 56%)
CMYKcmyk(65.5%, 43.7%, 0%, 44.3%)
CIE-LABlab(34.69, 9.56, -37.83)
CIE-LCHlch(34.69, 39.02, 284.18°)
OKLaboklab(44.01% -0.0138 -0.1079)
OKLCHoklch(44.01% 0.109 262.7)
XYZxyz(9.0161, 8.3424, 26.7211)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31508E #8E6F31
analogous
#317F8E #31508E #41318E
triadic
#31508E #8E3150 #508E31
tetradic
#31508E #8E317F #8E6F31 #318E41
square
#31508E #8E317F #8E6F31 #318E41
split-complementary
#31508E #8E4131 #7F8E31
monochromatic
#121D33 #213661 #31508E #416ABB #6D8DCD

Accessibility & contrast

On white

7.87
#31508E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31508E
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31508E#FFFFFF#000000##FFFFFF
##31508E1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335690
Deuteranopia (green-blind)
#254E8D
Tritanopia (blue-blind)
#005E68
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #31508e;
/* rgb */ color: rgb(49, 80, 142);
/* oklch */ color: oklch(44.0% 0.109 262.7);
Tailwind
colors: {
  custom: {
    50: '#7380af',
    500: '#31508e',
    950: '#000000',
  },
}
SCSS
$custom: #31508e;
$custom-light: #7380af;
$custom-dark: #000000;
JSON
{
  "hex": "#31508e",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 142
  },
  "hsl": {
    "h": 220,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.44007,
    "c": 0.10873,
    "h": 262.7
  },
  "luminance": 0.08343
}

Semantic roles & 50–950 ramp

primary
#31508E
secondary
#B49A67
accent
#AB50D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #31508E

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

Preview Lab → · Contrast checker → · Palette generator →

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