#313E8A#313E8A

#313E8A is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.8% C 0.127 H 272.1°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#313E8A
RGBrgb(49, 62, 138)
HSLhsl(231, 48%, 37%)
HSVhsv(231, 64%, 54%)
CMYKcmyk(64.5%, 55.1%, 0%, 45.9%)
CIE-LABlab(29.24, 20.17, -44.11)
CIE-LCHlch(29.24, 48.50, 294.57°)
OKLaboklab(39.77% 0.0046 -0.1266)
OKLCHoklch(39.77% 0.127 272.1)
XYZxyz(7.5752, 5.9326, 24.7857)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E8A #8A7D31
analogous
#316B8A #313E8A #51318A
triadic
#313E8A #8A313E #3E8A31
tetradic
#313E8A #8A316B #8A7D31 #318A51
square
#313E8A #8A316B #8A7D31 #318A51
split-complementary
#313E8A #8A5131 #6B8A31
monochromatic
#111530 #212A5D #313E8A #4152B7 #6B79CA

Accessibility & contrast

On white

9.60
#313E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#313E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E8A
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E8A#FFFFFF#000000##FFFFFF
##313E8A1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B498D
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#00505D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #313e8a;
/* rgb */ color: rgb(49, 62, 138);
/* oklch */ color: oklch(39.8% 0.127 272.1);
Tailwind
colors: {
  custom: {
    50: '#7373ad',
    500: '#313e8a',
    950: '#000000',
  },
}
SCSS
$custom: #313e8a;
$custom-light: #7373ad;
$custom-dark: #000000;
JSON
{
  "hex": "#313e8a",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 138
  },
  "hsl": {
    "h": 231.236,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39773,
    "c": 0.12668,
    "h": 272.1
  },
  "luminance": 0.05933
}

Semantic roles & 50–950 ramp

primary
#313E8A
secondary
#B2A765
accent
#C451D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #313E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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