#313F83#313F83

#313F83 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.4% C 0.115 H 271.5°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#313F83
RGBrgb(49, 63, 131)
HSLhsl(230, 46%, 35%)
HSVhsv(230, 63%, 51%)
CMYKcmyk(62.6%, 51.9%, 0%, 48.6%)
CIE-LABlab(29.02, 16.91, -40.13)
CIE-LCHlch(29.02, 43.55, 292.85°)
OKLaboklab(39.45% 0.0029 -0.1149)
OKLCHoklch(39.45% 0.115 271.5)
XYZxyz(7.1395, 5.8461, 22.2205)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F83 #837531
analogous
#316883 #313F83 #4C3183
triadic
#313F83 #83313F #3F8331
tetradic
#313F83 #833168 #837531 #31834C
square
#313F83 #833168 #837531 #31834C
split-complementary
#313F83 #834C31 #688331
monochromatic
#10142A #202A56 #313F83 #4254B0 #6878C6

Accessibility & contrast

On white

9.68
#313F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#313F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F83
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F83#FFFFFF#000000##FFFFFF
##313F831.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4885
Deuteranopia (green-blind)
#084182
Tritanopia (blue-blind)
#004F5B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313f83;
/* rgb */ color: rgb(49, 63, 131);
/* oklch */ color: oklch(39.4% 0.115 271.5);
Tailwind
colors: {
  custom: {
    50: '#7273a7',
    500: '#313f83',
    950: '#000000',
  },
}
SCSS
$custom: #313f83;
$custom-light: #7273a7;
$custom-dark: #000000;
JSON
{
  "hex": "#313f83",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 131
  },
  "hsl": {
    "h": 229.756,
    "s": 45.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39447,
    "c": 0.1149,
    "h": 271.5
  },
  "luminance": 0.05847
}

Semantic roles & 50–950 ramp

primary
#313F83
secondary
#AEA162
accent
#BF53D5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #313F83

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

Preview Lab → · Contrast checker → · Palette generator →

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