#31488D#31488D

#31488D is a dark, moderate blue. Relative luminance 0.072; OKLCH L 42.1% C 0.118 H 267.4°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#31488D
RGBrgb(49, 72, 141)
HSLhsl(225, 48%, 37%)
HSVhsv(225, 65%, 55%)
CMYKcmyk(65.2%, 48.9%, 0%, 44.7%)
CIE-LABlab(32.28, 14.52, -41.07)
CIE-LCHlch(32.28, 43.56, 289.48°)
OKLaboklab(42.14% -0.0054 -0.1175)
OKLCHoklch(42.14% 0.118 267.4)
XYZxyz(8.3901, 7.2100, 26.1437)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31488D #8D7631
analogous
#31768D #31488D #48318D
triadic
#31488D #8D3148 #488D31
tetradic
#31488D #8D3176 #8D7631 #318D48
square
#31488D #8D3176 #8D7631 #318D48
split-complementary
#31488D #8D4831 #768D31
monochromatic
#111A32 #213160 #31488D #415FBA #6C84CC

Accessibility & contrast

On white

8.60
#31488D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#31488D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31488D
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31488D#FFFFFF#000000##FFFFFF
##31488D1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255090
Deuteranopia (green-blind)
#13488C
Tritanopia (blue-blind)
#005863
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #31488d;
/* rgb */ color: rgb(49, 72, 141);
/* oklch */ color: oklch(42.1% 0.118 267.4);
Tailwind
colors: {
  custom: {
    50: '#737aaf',
    500: '#31488d',
    950: '#000000',
  },
}
SCSS
$custom: #31488d;
$custom-light: #737aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#31488d",
  "rgb": {
    "r": 49,
    "g": 72,
    "b": 141
  },
  "hsl": {
    "h": 225,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.42142,
    "c": 0.11762,
    "h": 267.4
  },
  "luminance": 0.07211
}

Semantic roles & 50–950 ramp

primary
#31488D
secondary
#B4A066
accent
#B650D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #31488D

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

Preview Lab → · Contrast checker → · Palette generator →

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