#31488E#31488E

#31488E is a dark, moderate blue. Relative luminance 0.072; OKLCH L 42.2% C 0.119 H 267.5°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#31488E
RGBrgb(49, 72, 142)
HSLhsl(225, 49%, 37%)
HSVhsv(225, 65%, 56%)
CMYKcmyk(65.5%, 49.3%, 0%, 44.3%)
CIE-LABlab(32.35, 14.89, -41.57)
CIE-LCHlch(32.35, 44.16, 289.71°)
OKLaboklab(42.21% -0.0053 -0.119)
OKLCHoklch(42.21% 0.119 267.5)
XYZxyz(8.4648, 7.2399, 26.5373)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31488E #8E7731
analogous
#31778E #31488E #48318E
triadic
#31488E #8E3148 #488E31
tetradic
#31488E #8E3177 #8E7731 #318E48
square
#31488E #8E3177 #8E7731 #318E48
split-complementary
#31488E #8E4831 #778E31
monochromatic
#121A33 #213161 #31488E #415FBB #6D85CD

Accessibility & contrast

On white

8.58
#31488E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31488E
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31488E#FFFFFF#000000##FFFFFF
##31488E1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245191
Deuteranopia (green-blind)
#10488D
Tritanopia (blue-blind)
#005864
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #31488e;
/* rgb */ color: rgb(49, 72, 142);
/* oklch */ color: oklch(42.2% 0.119 267.5);
Tailwind
colors: {
  custom: {
    50: '#737aaf',
    500: '#31488e',
    950: '#000000',
  },
}
SCSS
$custom: #31488e;
$custom-light: #737aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#31488e",
  "rgb": {
    "r": 49,
    "g": 72,
    "b": 142
  },
  "hsl": {
    "h": 225.161,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.42214,
    "c": 0.1191,
    "h": 267.5
  },
  "luminance": 0.07241
}

Semantic roles & 50–950 ramp

primary
#31488E
secondary
#B4A167
accent
#B650D8
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #31488E

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

Preview Lab → · Contrast checker → · Palette generator →

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