#31397D#31397D

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

Color values

HEX#31397D
RGBrgb(49, 57, 125)
HSLhsl(234, 44%, 34%)
HSVhsv(234, 61%, 49%)
CMYKcmyk(60.8%, 54.4%, 0%, 51%)
CIE-LABlab(26.90, 18.81, -39.79)
CIE-LCHlch(26.90, 44.01, 295.30°)
OKLaboklab(37.71% 0.009 -0.1139)
OKLCHoklch(37.71% 0.114 274.5)
XYZxyz(6.4302, 5.0594, 20.0358)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31397D #7D7531
analogous
#315F7D #31397D #4F317D
triadic
#31397D #7D3139 #397D31
tetradic
#31397D #7D315F #7D7531 #317D4F
square
#31397D #7D315F #7D7531 #317D4F
split-complementary
#31397D #7D4F31 #5F7D31
monochromatic
#0F1125 #202551 #31397D #424DA9 #666FC3

Accessibility & contrast

On white

10.44
#31397D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#31397D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31397D
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31397D#FFFFFF#000000##FFFFFF
##31397D1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11437F
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #31397d;
/* rgb */ color: rgb(49, 57, 125);
/* oklch */ color: oklch(37.7% 0.114 274.5);
Tailwind
colors: {
  custom: {
    50: '#716fa3',
    500: '#31397d',
    950: '#000000',
  },
}
SCSS
$custom: #31397d;
$custom-light: #716fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#31397d",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 125
  },
  "hsl": {
    "h": 233.684,
    "s": 43.678,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37713,
    "c": 0.11427,
    "h": 274.5
  },
  "luminance": 0.0506
}

Semantic roles & 50–950 ramp

primary
#31397D
secondary
#AAA260
accent
#C654D3
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #31397D

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

Preview Lab → · Contrast checker → · Palette generator →

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