#31397E#31397E

#31397E is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.8% C 0.116 H 274.5°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#31397E
RGBrgb(49, 57, 126)
HSLhsl(234, 44%, 34%)
HSVhsv(234, 61%, 49%)
CMYKcmyk(61.1%, 54.8%, 0%, 50.6%)
CIE-LABlab(26.98, 19.17, -40.30)
CIE-LCHlch(26.98, 44.62, 295.44°)
OKLaboklab(37.79% 0.009 -0.1154)
OKLCHoklch(37.79% 0.116 274.5)
XYZxyz(6.4944, 5.0851, 20.3739)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31397E #7E7631
analogous
#31607E #31397E #50317E
triadic
#31397E #7E3139 #397E31
tetradic
#31397E #7E3160 #7E7631 #317E50
square
#31397E #7E3160 #7E7631 #317E50
split-complementary
#31397E #7E5031 #607E31
monochromatic
#0F1126 #202552 #31397E #424DAA #6670C3

Accessibility & contrast

On white

10.41
#31397E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#31397E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31397E
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31397E#FFFFFF#000000##FFFFFF
##31397E1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104380
Deuteranopia (green-blind)
#003D7D
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #31397e;
/* rgb */ color: rgb(49, 57, 126);
/* oklch */ color: oklch(37.8% 0.116 274.5);
Tailwind
colors: {
  custom: {
    50: '#716fa4',
    500: '#31397e',
    950: '#000000',
  },
}
SCSS
$custom: #31397e;
$custom-light: #716fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#31397e",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 233.766,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37791,
    "c": 0.11578,
    "h": 274.5
  },
  "luminance": 0.05086
}

Semantic roles & 50–950 ramp

primary
#31397E
secondary
#ABA360
accent
#C654D4
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #31397E

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

Preview Lab → · Contrast checker → · Palette generator →

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