#313C71#313C71

#313C71 is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.5% C 0.091 H 272.5°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#313C71
RGBrgb(49, 60, 113)
HSLhsl(230, 40%, 32%)
HSVhsv(230, 57%, 44%)
CMYKcmyk(56.6%, 46.9%, 0%, 55.7%)
CIE-LABlab(26.95, 12.41, -32.12)
CIE-LCHlch(26.95, 34.44, 291.13°)
OKLaboklab(37.49% 0.0039 -0.0914)
OKLCHoklch(37.49% 0.091 272.5)
XYZxyz(5.8622, 5.0765, 16.2905)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C71 #716631
analogous
#315C71 #313C71 #463171
triadic
#313C71 #71313C #3C7131
tetradic
#313C71 #71315C #716631 #317146
square
#313C71 #71315C #716631 #317146
split-complementary
#313C71 #714631 #5C7131
monochromatic
#0C0F1C #1E2546 #313C71 #44539C #6271BB

Accessibility & contrast

On white

10.42
#313C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#313C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313C71
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C71#FFFFFF#000000##FFFFFF
##313C711.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313c71;
/* rgb */ color: rgb(49, 60, 113);
/* oklch */ color: oklch(37.5% 0.091 272.5);
Tailwind
colors: {
  custom: {
    50: '#6e719a',
    500: '#313c71',
    950: '#000000',
  },
}
SCSS
$custom: #313c71;
$custom-light: #6e719a;
$custom-dark: #000000;
JSON
{
  "hex": "#313c71",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 113
  },
  "hsl": {
    "h": 229.688,
    "s": 39.506,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37488,
    "c": 0.09144,
    "h": 272.5
  },
  "luminance": 0.05077
}

Semantic roles & 50–950 ramp

primary
#313C71
secondary
#A2965C
accent
#BB58CF
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #313C71

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

Preview Lab → · Contrast checker → · Palette generator →

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