#31397B#31397B

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

Color values

HEX#31397B
RGBrgb(49, 57, 123)
HSLhsl(234, 43%, 34%)
HSVhsv(234, 60%, 48%)
CMYKcmyk(60.2%, 53.7%, 0%, 51.8%)
CIE-LABlab(26.76, 18.08, -38.76)
CIE-LCHlch(26.76, 42.77, 295.01°)
OKLaboklab(37.56% 0.0088 -0.1109)
OKLCHoklch(37.56% 0.111 274.5)
XYZxyz(6.3037, 5.0088, 19.3697)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31397B #7B7331
analogous
#315E7B #31397B #4E317B
triadic
#31397B #7B3139 #397B31
tetradic
#31397B #7B315E #7B7331 #317B4E
square
#31397B #7B315E #7B7331 #317B4E
split-complementary
#31397B #7B4E31 #5E7B31
monochromatic
#0E1023 #20254F #31397B #424DA7 #656FC2

Accessibility & contrast

On white

10.49
#31397B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31397B
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31397B#FFFFFF#000000##FFFFFF
##31397B1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14437D
Deuteranopia (green-blind)
#043C7A
Tritanopia (blue-blind)
#004854
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #31397b;
/* rgb */ color: rgb(49, 57, 123);
/* oklch */ color: oklch(37.6% 0.111 274.5);
Tailwind
colors: {
  custom: {
    50: '#706fa2',
    500: '#31397b',
    950: '#000000',
  },
}
SCSS
$custom: #31397b;
$custom-light: #706fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#31397b",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 233.514,
    "s": 43.023,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37559,
    "c": 0.11125,
    "h": 274.5
  },
  "luminance": 0.05009
}

Semantic roles & 50–950 ramp

primary
#31397B
secondary
#A9A15F
accent
#C555D3
background
#F7F6FA
surface
#EDECF3
border
#C8C7CD
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #31397B

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

Preview Lab → · Contrast checker → · Palette generator →

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