#31498E#31498E

#31498E is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.4% C 0.118 H 266.9°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#31498E
RGBrgb(49, 73, 142)
HSLhsl(225, 49%, 37%)
HSVhsv(225, 65%, 56%)
CMYKcmyk(65.5%, 48.6%, 0%, 44.3%)
CIE-LABlab(32.64, 14.22, -41.11)
CIE-LCHlch(32.64, 43.50, 289.08°)
OKLaboklab(42.43% -0.0063 -0.1176)
OKLCHoklch(42.43% 0.118 266.9)
XYZxyz(8.5300, 7.3703, 26.5590)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31498E #8E7631
analogous
#31788E #31498E #47318E
triadic
#31498E #8E3149 #498E31
tetradic
#31498E #8E3178 #8E7631 #318E47
square
#31498E #8E3178 #8E7631 #318E47
split-complementary
#31498E #8E4731 #788E31
monochromatic
#121A33 #213261 #31498E #4160BB #6D86CD

Accessibility & contrast

On white

8.49
#31498E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#31498E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31498E
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31498E#FFFFFF#000000##FFFFFF
##31498E1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265191
Deuteranopia (green-blind)
#14498D
Tritanopia (blue-blind)
#005964
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #31498e;
/* rgb */ color: rgb(49, 73, 142);
/* oklch */ color: oklch(42.4% 0.118 266.9);
Tailwind
colors: {
  custom: {
    50: '#737baf',
    500: '#31498e',
    950: '#000000',
  },
}
SCSS
$custom: #31498e;
$custom-light: #737baf;
$custom-dark: #000000;
JSON
{
  "hex": "#31498e",
  "rgb": {
    "r": 49,
    "g": 73,
    "b": 142
  },
  "hsl": {
    "h": 224.516,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.42434,
    "c": 0.11777,
    "h": 266.9
  },
  "luminance": 0.07371
}

Semantic roles & 50–950 ramp

primary
#31498E
secondary
#B4A067
accent
#B550D8
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #31498E

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

Preview Lab → · Contrast checker → · Palette generator →

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