#313D71#313D71

#313D71 is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.7% C 0.090 H 271.7°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#313D71
RGBrgb(49, 61, 113)
HSLhsl(229, 40%, 32%)
HSVhsv(229, 57%, 44%)
CMYKcmyk(56.6%, 46%, 0%, 55.7%)
CIE-LABlab(27.25, 11.73, -31.65)
CIE-LCHlch(27.25, 33.75, 290.33°)
OKLaboklab(37.71% 0.0027 -0.09)
OKLCHoklch(37.71% 0.09 271.7)
XYZxyz(5.9150, 5.1823, 16.3082)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D71 #716531
analogous
#315D71 #313D71 #453171
triadic
#313D71 #71313D #3D7131
tetradic
#313D71 #71315D #716531 #317145
square
#313D71 #71315D #716531 #317145
split-complementary
#313D71 #714531 #5D7131
monochromatic
#0C0F1C #1E2646 #313D71 #44549C #6272BB

Accessibility & contrast

On white

10.31
#313D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#313D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D71
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D71#FFFFFF#000000##FFFFFF
##313D711.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274373
Deuteranopia (green-blind)
#1F3E70
Tritanopia (blue-blind)
#114851
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313d71;
/* rgb */ color: rgb(49, 61, 113);
/* oklch */ color: oklch(37.7% 0.090 271.7);
Tailwind
colors: {
  custom: {
    50: '#6e729a',
    500: '#313d71',
    950: '#000000',
  },
}
SCSS
$custom: #313d71;
$custom-light: #6e729a;
$custom-dark: #000000;
JSON
{
  "hex": "#313d71",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 113
  },
  "hsl": {
    "h": 228.75,
    "s": 39.506,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37714,
    "c": 0.09,
    "h": 271.7
  },
  "luminance": 0.05183
}

Semantic roles & 50–950 ramp

primary
#313D71
secondary
#A2955C
accent
#B958CF
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #313D71

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

Preview Lab → · Contrast checker → · Palette generator →

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