#313A71#313A71

#313A71 is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.0% C 0.094 H 273.9°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#313A71
RGBrgb(49, 58, 113)
HSLhsl(232, 40%, 32%)
HSVhsv(232, 57%, 44%)
CMYKcmyk(56.6%, 48.7%, 0%, 55.7%)
CIE-LABlab(26.36, 13.79, -33.06)
CIE-LCHlch(26.36, 35.82, 292.64°)
OKLaboklab(37.04% 0.0064 -0.0941)
OKLCHoklch(37.04% 0.094 273.9)
XYZxyz(5.7594, 4.8709, 16.2563)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A71 #716831
analogous
#315A71 #313A71 #483171
triadic
#313A71 #71313A #3A7131
tetradic
#313A71 #71315A #716831 #317148
square
#313A71 #71315A #716831 #317148
split-complementary
#313A71 #714831 #5A7131
monochromatic
#0C0E1C #1E2446 #313A71 #44509C #626EBB

Accessibility & contrast

On white

10.64
#313A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#313A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A71
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A71#FFFFFF#000000##FFFFFF
##313A711.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214173
Deuteranopia (green-blind)
#1A3C70
Tritanopia (blue-blind)
#114650
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #313a71;
/* rgb */ color: rgb(49, 58, 113);
/* oklch */ color: oklch(37.0% 0.094 273.9);
Tailwind
colors: {
  custom: {
    50: '#6e6f9a',
    500: '#313a71',
    950: '#000000',
  },
}
SCSS
$custom: #313a71;
$custom-light: #6e6f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#313a71",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 113
  },
  "hsl": {
    "h": 231.563,
    "s": 39.506,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3704,
    "c": 0.09436,
    "h": 273.9
  },
  "luminance": 0.04871
}

Semantic roles & 50–950 ramp

primary
#313A71
secondary
#A2985C
accent
#BF58CF
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #313A71

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

Preview Lab → · Contrast checker → · Palette generator →

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