#31397A#31397A

#31397A is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.5% C 0.110 H 274.6°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#31397A
RGBrgb(49, 57, 122)
HSLhsl(233, 43%, 34%)
HSVhsv(233, 60%, 48%)
CMYKcmyk(59.8%, 53.3%, 0%, 52.2%)
CIE-LABlab(26.69, 17.72, -38.24)
CIE-LCHlch(26.69, 42.15, 294.86°)
OKLaboklab(37.48% 0.0087 -0.1094)
OKLCHoklch(37.48% 0.11 274.6)
XYZxyz(6.2415, 4.9839, 19.0417)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31397A #7A7231
analogous
#315D7A #31397A #4D317A
triadic
#31397A #7A3139 #397A31
tetradic
#31397A #7A315D #7A7231 #317A4D
square
#31397A #7A315D #7A7231 #317A4D
split-complementary
#31397A #7A4D31 #5D7A31
monochromatic
#0E1023 #1F254E #31397A #434DA6 #646FC1

Accessibility & contrast

On white

10.52
#31397A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#31397A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31397A
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31397A#FFFFFF#000000##FFFFFF
##31397A1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16427C
Deuteranopia (green-blind)
#073C79
Tritanopia (blue-blind)
#024854
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #31397a;
/* rgb */ color: rgb(49, 57, 122);
/* oklch */ color: oklch(37.5% 0.110 274.6);
Tailwind
colors: {
  custom: {
    50: '#706fa1',
    500: '#31397a',
    950: '#000000',
  },
}
SCSS
$custom: #31397a;
$custom-light: #706fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#31397a",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 122
  },
  "hsl": {
    "h": 233.425,
    "s": 42.69,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37483,
    "c": 0.10973,
    "h": 274.6
  },
  "luminance": 0.04984
}

Semantic roles & 50–950 ramp

primary
#31397A
secondary
#A8A05E
accent
#C555D2
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#08070F
muted
#7B7A7E

Preview Lab

Preview with #31397A

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

Preview Lab → · Contrast checker → · Palette generator →

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