#31497A#31497A

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

Color values

HEX#31497A
RGBrgb(49, 73, 122)
HSLhsl(220, 43%, 34%)
HSVhsv(220, 60%, 48%)
CMYKcmyk(59.8%, 40.2%, 0%, 52.2%)
CIE-LABlab(31.40, 6.87, -30.72)
CIE-LCHlch(31.40, 31.48, 282.60°)
OKLaboklab(41.08% -0.0102 -0.0871)
OKLCHoklch(41.08% 0.088 263.3)
XYZxyz(7.1608, 6.8226, 19.3481)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31497A #7A6231
analogous
#316D7A #31497A #3D317A
triadic
#31497A #7A3149 #497A31
tetradic
#31497A #7A316D #7A6231 #317A3D
square
#31497A #7A316D #7A6231 #317A3D
split-complementary
#31497A #7A3D31 #6D7A31
monochromatic
#0E1523 #1F2F4E #31497A #4363A6 #6483C1

Accessibility & contrast

On white

8.88
#31497A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#31497A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31497A
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31497A#FFFFFF#000000##FFFFFF
##31497A1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344E7C
Deuteranopia (green-blind)
#2B4779
Tritanopia (blue-blind)
#00545B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #31497a;
/* rgb */ color: rgb(49, 73, 122);
/* oklch */ color: oklch(41.1% 0.088 263.3);
Tailwind
colors: {
  custom: {
    50: '#6f7ba1',
    500: '#31497a',
    950: '#000000',
  },
}
SCSS
$custom: #31497a;
$custom-light: #6f7ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#31497a",
  "rgb": {
    "r": 49,
    "g": 73,
    "b": 122
  },
  "hsl": {
    "h": 220.274,
    "s": 42.69,
    "l": 33.529
  },
  "oklch": {
    "l": 0.41084,
    "c": 0.08771,
    "h": 263.3
  },
  "luminance": 0.06823
}

Semantic roles & 50–950 ramp

primary
#31497A
secondary
#A8905E
accent
#A955D2
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#08090F
muted
#7B7B7E

Preview Lab

Preview with #31497A

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

Preview Lab → · Contrast checker → · Palette generator →

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