#313F84#313F84

#313F84 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.5% C 0.116 H 271.5°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#313F84
RGBrgb(49, 63, 132)
HSLhsl(230, 46%, 35%)
HSVhsv(230, 63%, 52%)
CMYKcmyk(62.9%, 52.3%, 0%, 48.2%)
CIE-LABlab(29.09, 17.28, -40.64)
CIE-LCHlch(29.09, 44.16, 293.04°)
OKLaboklab(39.52% 0.003 -0.1164)
OKLCHoklch(39.52% 0.116 271.5)
XYZxyz(7.2076, 5.8733, 22.5792)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F84 #847631
analogous
#316884 #313F84 #4D3184
triadic
#313F84 #84313F #3F8431
tetradic
#313F84 #843168 #847631 #31844D
square
#313F84 #843168 #847631 #31844D
split-complementary
#313F84 #844D31 #688431
monochromatic
#10142B #202A57 #313F84 #4254B1 #6878C7

Accessibility & contrast

On white

9.66
#313F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313F84
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F84#FFFFFF#000000##FFFFFF
##313F841.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194886
Deuteranopia (green-blind)
#054183
Tritanopia (blue-blind)
#004F5B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #313f84;
/* rgb */ color: rgb(49, 63, 132);
/* oklch */ color: oklch(39.5% 0.116 271.5);
Tailwind
colors: {
  custom: {
    50: '#7273a8',
    500: '#313f84',
    950: '#000000',
  },
}
SCSS
$custom: #313f84;
$custom-light: #7273a8;
$custom-dark: #000000;
JSON
{
  "hex": "#313f84",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 132
  },
  "hsl": {
    "h": 229.88,
    "s": 45.856,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39522,
    "c": 0.1164,
    "h": 271.5
  },
  "luminance": 0.05874
}

Semantic roles & 50–950 ramp

primary
#313F84
secondary
#AEA262
accent
#BF52D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #313F84

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

Preview Lab → · Contrast checker → · Palette generator →

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