#313E71#313E71

#313E71 is a dark, moderate blue. Relative luminance 0.053; OKLCH L 37.9% C 0.089 H 270.9°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#313E71
RGBrgb(49, 62, 113)
HSLhsl(228, 40%, 32%)
HSVhsv(228, 57%, 44%)
CMYKcmyk(56.6%, 45.1%, 0%, 55.7%)
CIE-LABlab(27.55, 11.04, -31.17)
CIE-LCHlch(27.55, 33.07, 289.51°)
OKLaboklab(37.94% 0.0014 -0.0886)
OKLCHoklch(37.94% 0.089 270.9)
XYZxyz(5.9689, 5.2901, 16.3261)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E71 #716431
analogous
#315E71 #313E71 #443171
triadic
#313E71 #71313E #3E7131
tetradic
#313E71 #71315E #716431 #317144
square
#313E71 #71315E #716431 #317144
split-complementary
#313E71 #714431 #5E7131
monochromatic
#0C0F1C #1E2746 #313E71 #44559C #6274BB

Accessibility & contrast

On white

10.20
#313E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#313E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E71
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E71#FFFFFF#000000##FFFFFF
##313E711.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284473
Deuteranopia (green-blind)
#213E70
Tritanopia (blue-blind)
#104952
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313e71;
/* rgb */ color: rgb(49, 62, 113);
/* oklch */ color: oklch(37.9% 0.089 270.9);
Tailwind
colors: {
  custom: {
    50: '#6e739a',
    500: '#313e71',
    950: '#000000',
  },
}
SCSS
$custom: #313e71;
$custom-light: #6e739a;
$custom-dark: #000000;
JSON
{
  "hex": "#313e71",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 113
  },
  "hsl": {
    "h": 227.813,
    "s": 39.506,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37942,
    "c": 0.08857,
    "h": 270.9
  },
  "luminance": 0.0529
}

Semantic roles & 50–950 ramp

primary
#313E71
secondary
#A2945C
accent
#B758CF
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #313E71

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

Preview Lab → · Contrast checker → · Palette generator →

#313E71 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva