#31528D#31528D

#31528D is a dark, moderate blue. Relative luminance 0.086; OKLCH L 44.4% C 0.105 H 261.1°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#31528D
RGBrgb(49, 82, 141)
HSLhsl(218, 48%, 37%)
HSVhsv(218, 65%, 55%)
CMYKcmyk(65.2%, 41.8%, 0%, 44.7%)
CIE-LABlab(35.22, 7.87, -36.36)
CIE-LCHlch(35.22, 37.20, 282.21°)
OKLaboklab(44.4% -0.0161 -0.1035)
OKLCHoklch(44.4% 0.105 261.1)
XYZxyz(9.0899, 8.6098, 26.3770)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31528D #8D6C31
analogous
#31808D #31528D #3E318D
triadic
#31528D #8D3152 #528D31
tetradic
#31528D #8D3180 #8D6C31 #318D3E
square
#31528D #8D3180 #8D6C31 #318D3E
split-complementary
#31528D #8D3E31 #808D31
monochromatic
#111D32 #213860 #31528D #416CBA #6C8FCC

Accessibility & contrast

On white

7.71
#31528D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#31528D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31528D
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31528D#FFFFFF#000000##FFFFFF
##31528D1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38578F
Deuteranopia (green-blind)
#2A4F8C
Tritanopia (blue-blind)
#005F68
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #31528d;
/* rgb */ color: rgb(49, 82, 141);
/* oklch */ color: oklch(44.4% 0.105 261.1);
Tailwind
colors: {
  custom: {
    50: '#7382af',
    500: '#31528d',
    950: '#000000',
  },
}
SCSS
$custom: #31528d;
$custom-light: #7382af;
$custom-dark: #000000;
JSON
{
  "hex": "#31528d",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 141
  },
  "hsl": {
    "h": 218.478,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.44402,
    "c": 0.10479,
    "h": 261.1
  },
  "luminance": 0.08611
}

Semantic roles & 50–950 ramp

primary
#31528D
secondary
#B49866
accent
#A750D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #31528D

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

Preview Lab → · Contrast checker → · Palette generator →

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