#31488F#31488F

#31488F is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.3% C 0.121 H 267.6°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#31488F
RGBrgb(49, 72, 143)
HSLhsl(225, 49%, 38%)
HSVhsv(225, 66%, 56%)
CMYKcmyk(65.7%, 49.7%, 0%, 43.9%)
CIE-LABlab(32.41, 15.27, -42.08)
CIE-LCHlch(32.41, 44.76, 289.94°)
OKLaboklab(42.29% -0.0051 -0.1205)
OKLCHoklch(42.29% 0.121 267.6)
XYZxyz(8.5402, 7.2701, 26.9345)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31488F #8F7831
analogous
#31778F #31488F #49318F
triadic
#31488F #8F3148 #488F31
tetradic
#31488F #8F3177 #8F7831 #318F49
square
#31488F #8F3177 #8F7831 #318F49
split-complementary
#31488F #8F4931 #778F31
monochromatic
#121A34 #213161 #31488F #415FBD #6D85CD

Accessibility & contrast

On white

8.56
#31488F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#31488F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31488F
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31488F#FFFFFF#000000##FFFFFF
##31488F1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235192
Deuteranopia (green-blind)
#0E488E
Tritanopia (blue-blind)
#005864
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #31488f;
/* rgb */ color: rgb(49, 72, 143);
/* oklch */ color: oklch(42.3% 0.121 267.6);
Tailwind
colors: {
  custom: {
    50: '#737ab0',
    500: '#31488f',
    950: '#000000',
  },
}
SCSS
$custom: #31488f;
$custom-light: #737ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#31488f",
  "rgb": {
    "r": 49,
    "g": 72,
    "b": 143
  },
  "hsl": {
    "h": 225.319,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42286,
    "c": 0.12058,
    "h": 267.6
  },
  "luminance": 0.07271
}

Semantic roles & 50–950 ramp

primary
#31488F
secondary
#B5A267
accent
#B74FD9
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #31488F

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

Preview Lab → · Contrast checker → · Palette generator →

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