#31498F#31498F

#31498F is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.5% C 0.119 H 267.0°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#31498F
RGBrgb(49, 73, 143)
HSLhsl(225, 49%, 38%)
HSVhsv(225, 66%, 56%)
CMYKcmyk(65.7%, 49%, 0%, 43.9%)
CIE-LABlab(32.70, 14.60, -41.61)
CIE-LCHlch(32.70, 44.10, 289.33°)
OKLaboklab(42.51% -0.0062 -0.1191)
OKLCHoklch(42.51% 0.119 267)
XYZxyz(8.6054, 7.4004, 26.9562)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31498F #8F7731
analogous
#31788F #31498F #48318F
triadic
#31498F #8F3149 #498F31
tetradic
#31498F #8F3178 #8F7731 #318F48
square
#31498F #8F3178 #8F7731 #318F48
split-complementary
#31498F #8F4831 #788F31
monochromatic
#121A34 #213261 #31498F #4160BD #6D86CD

Accessibility & contrast

On white

8.47
#31498F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#31498F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31498F
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31498F#FFFFFF#000000##FFFFFF
##31498F1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255192
Deuteranopia (green-blind)
#12498E
Tritanopia (blue-blind)
#005965
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #31498f;
/* rgb */ color: rgb(49, 73, 143);
/* oklch */ color: oklch(42.5% 0.119 267.0);
Tailwind
colors: {
  custom: {
    50: '#737bb0',
    500: '#31498f',
    950: '#000000',
  },
}
SCSS
$custom: #31498f;
$custom-light: #737bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#31498f",
  "rgb": {
    "r": 49,
    "g": 73,
    "b": 143
  },
  "hsl": {
    "h": 224.681,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42506,
    "c": 0.11925,
    "h": 267
  },
  "luminance": 0.07401
}

Semantic roles & 50–950 ramp

primary
#31498F
secondary
#B5A167
accent
#B54FD9
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #31498F

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

Preview Lab → · Contrast checker → · Palette generator →

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