#31497B#31497B

#31497B is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.1% C 0.089 H 263.6°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#31497B
RGBrgb(49, 73, 123)
HSLhsl(221, 43%, 34%)
HSVhsv(221, 60%, 48%)
CMYKcmyk(60.2%, 40.7%, 0%, 51.8%)
CIE-LABlab(31.46, 7.23, -31.25)
CIE-LCHlch(31.46, 32.08, 283.03°)
OKLaboklab(41.15% -0.01 -0.0887)
OKLCHoklch(41.15% 0.089 263.6)
XYZxyz(7.2231, 6.8475, 19.6761)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31497B #7B6331
analogous
#316E7B #31497B #3E317B
triadic
#31497B #7B3149 #497B31
tetradic
#31497B #7B316E #7B6331 #317B3E
square
#31497B #7B316E #7B6331 #317B3E
split-complementary
#31497B #7B3E31 #6E7B31
monochromatic
#0E1523 #202F4F #31497B #4263A7 #6583C2

Accessibility & contrast

On white

8.86
#31497B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#31497B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31497B
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31497B#FFFFFF#000000##FFFFFF
##31497B1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344E7D
Deuteranopia (green-blind)
#2A477A
Tritanopia (blue-blind)
#00545C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #31497b;
/* rgb */ color: rgb(49, 73, 123);
/* oklch */ color: oklch(41.1% 0.089 263.6);
Tailwind
colors: {
  custom: {
    50: '#707ba1',
    500: '#31497b',
    950: '#000000',
  },
}
SCSS
$custom: #31497b;
$custom-light: #707ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#31497b",
  "rgb": {
    "r": 49,
    "g": 73,
    "b": 123
  },
  "hsl": {
    "h": 220.541,
    "s": 43.023,
    "l": 33.725
  },
  "oklch": {
    "l": 0.41147,
    "c": 0.08923,
    "h": 263.6
  },
  "luminance": 0.06848
}

Semantic roles & 50–950 ramp

primary
#31497B
secondary
#A9915F
accent
#AA55D3
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#08090F
muted
#7B7B7E

Preview Lab

Preview with #31497B

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

Preview Lab → · Contrast checker → · Palette generator →

#31497B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva