#313D83#313D83

#313D83 is a dark, moderate blue. Relative luminance 0.056; OKLCH L 39.0% C 0.118 H 272.5°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#313D83
RGBrgb(49, 61, 131)
HSLhsl(231, 46%, 35%)
HSVhsv(231, 63%, 51%)
CMYKcmyk(62.6%, 53.4%, 0%, 48.6%)
CIE-LABlab(28.46, 18.27, -41.04)
CIE-LCHlch(28.46, 44.92, 294.00°)
OKLaboklab(39.02% 0.0051 -0.1176)
OKLCHoklch(39.02% 0.118 272.5)
XYZxyz(7.0307, 5.6286, 22.1843)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D83 #837731
analogous
#316683 #313D83 #4E3183
triadic
#313D83 #83313D #3D8331
tetradic
#313D83 #833166 #837731 #31834E
square
#313D83 #833166 #837731 #31834E
split-complementary
#313D83 #834E31 #668331
monochromatic
#10142A #202856 #313D83 #4252B0 #6876C6

Accessibility & contrast

On white

9.88
#313D83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#313D83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D83
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D83#FFFFFF#000000##FFFFFF
##313D831.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154785
Deuteranopia (green-blind)
#004082
Tritanopia (blue-blind)
#004D5A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313d83;
/* rgb */ color: rgb(49, 61, 131);
/* oklch */ color: oklch(39.0% 0.118 272.5);
Tailwind
colors: {
  custom: {
    50: '#7272a7',
    500: '#313d83',
    950: '#000000',
  },
}
SCSS
$custom: #313d83;
$custom-light: #7272a7;
$custom-dark: #000000;
JSON
{
  "hex": "#313d83",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 131
  },
  "hsl": {
    "h": 231.22,
    "s": 45.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39019,
    "c": 0.11767,
    "h": 272.5
  },
  "luminance": 0.05629
}

Semantic roles & 50–950 ramp

primary
#313D83
secondary
#AEA362
accent
#C253D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #313D83

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

Preview Lab → · Contrast checker → · Palette generator →

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