#31528E#31528E

#31528E is a dark, moderate blue. Relative luminance 0.086; OKLCH L 44.5% C 0.106 H 261.4°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#31528E
RGBrgb(49, 82, 142)
HSLhsl(219, 49%, 37%)
HSVhsv(219, 65%, 56%)
CMYKcmyk(65.5%, 42.3%, 0%, 44.3%)
CIE-LABlab(35.28, 8.24, -36.88)
CIE-LCHlch(35.28, 37.79, 282.59°)
OKLaboklab(44.47% -0.0159 -0.105)
OKLCHoklch(44.47% 0.106 261.4)
XYZxyz(9.1647, 8.6397, 26.7706)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31528E #8E6D31
analogous
#31808E #31528E #3F318E
triadic
#31528E #8E3152 #528E31
tetradic
#31528E #8E3180 #8E6D31 #318E3F
square
#31528E #8E3180 #8E6D31 #318E3F
split-complementary
#31528E #8E3F31 #808E31
monochromatic
#121D33 #213861 #31528E #416CBB #6D8FCD

Accessibility & contrast

On white

7.70
#31528E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#31528E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31528E
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31528E#FFFFFF#000000##FFFFFF
##31528E1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375890
Deuteranopia (green-blind)
#294F8D
Tritanopia (blue-blind)
#006069
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #31528e;
/* rgb */ color: rgb(49, 82, 142);
/* oklch */ color: oklch(44.5% 0.106 261.4);
Tailwind
colors: {
  custom: {
    50: '#7382af',
    500: '#31528e',
    950: '#000000',
  },
}
SCSS
$custom: #31528e;
$custom-light: #7382af;
$custom-dark: #000000;
JSON
{
  "hex": "#31528e",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 142
  },
  "hsl": {
    "h": 218.71,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.44467,
    "c": 0.10625,
    "h": 261.4
  },
  "luminance": 0.08641
}

Semantic roles & 50–950 ramp

primary
#31528E
secondary
#B49967
accent
#A850D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #31528E

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

Preview Lab → · Contrast checker → · Palette generator →

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