#31397C#31397C

#31397C is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.6% C 0.113 H 274.5°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#31397C
RGBrgb(49, 57, 124)
HSLhsl(234, 43%, 34%)
HSVhsv(234, 60%, 49%)
CMYKcmyk(60.5%, 54%, 0%, 51.4%)
CIE-LABlab(26.83, 18.44, -39.27)
CIE-LCHlch(26.83, 43.39, 295.16°)
OKLaboklab(37.64% 0.0089 -0.1124)
OKLCHoklch(37.64% 0.113 274.5)
XYZxyz(6.3667, 5.0340, 19.7010)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31397C #7C7431
analogous
#315F7C #31397C #4F317C
triadic
#31397C #7C3139 #397C31
tetradic
#31397C #7C315F #7C7431 #317C4F
square
#31397C #7C315F #7C7431 #317C4F
split-complementary
#31397C #7C4F31 #5F7C31
monochromatic
#0E1124 #202550 #31397C #424DA8 #656FC2

Accessibility & contrast

On white

10.46
#31397C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31397C
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31397C#FFFFFF#000000##FFFFFF
##31397C1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13437E
Deuteranopia (green-blind)
#023C7B
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #31397c;
/* rgb */ color: rgb(49, 57, 124);
/* oklch */ color: oklch(37.6% 0.113 274.5);
Tailwind
colors: {
  custom: {
    50: '#716fa2',
    500: '#31397c',
    950: '#000000',
  },
}
SCSS
$custom: #31397c;
$custom-light: #716fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#31397c",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 124
  },
  "hsl": {
    "h": 233.6,
    "s": 43.353,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37636,
    "c": 0.11277,
    "h": 274.5
  },
  "luminance": 0.05034
}

Semantic roles & 50–950 ramp

primary
#31397C
secondary
#AAA25F
accent
#C655D3
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #31397C

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

Preview Lab → · Contrast checker → · Palette generator →

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