#313D8A#313D8A

#313D8A is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.6% C 0.128 H 272.5°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#313D8A
RGBrgb(49, 61, 138)
HSLhsl(232, 48%, 37%)
HSVhsv(232, 64%, 54%)
CMYKcmyk(64.5%, 55.8%, 0%, 45.9%)
CIE-LABlab(28.97, 20.84, -44.56)
CIE-LCHlch(28.97, 49.19, 295.07°)
OKLaboklab(39.57% 0.0056 -0.1279)
OKLCHoklch(39.57% 0.128 272.5)
XYZxyz(7.5213, 5.8248, 24.7678)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D8A #8A7E31
analogous
#316A8A #313D8A #52318A
triadic
#313D8A #8A313D #3D8A31
tetradic
#313D8A #8A316A #8A7E31 #318A52
square
#313D8A #8A316A #8A7E31 #318A52
split-complementary
#313D8A #8A5231 #6A8A31
monochromatic
#111530 #21295D #313D8A #4151B7 #6B78CA

Accessibility & contrast

On white

9.70
#313D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313D8A
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D8A#FFFFFF#000000##FFFFFF
##313D8A1.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06488D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313d8a;
/* rgb */ color: rgb(49, 61, 138);
/* oklch */ color: oklch(39.6% 0.128 272.5);
Tailwind
colors: {
  custom: {
    50: '#7372ad',
    500: '#313d8a',
    950: '#000000',
  },
}
SCSS
$custom: #313d8a;
$custom-light: #7372ad;
$custom-dark: #000000;
JSON
{
  "hex": "#313d8a",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 138
  },
  "hsl": {
    "h": 231.91,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39566,
    "c": 0.12804,
    "h": 272.5
  },
  "luminance": 0.05825
}

Semantic roles & 50–950 ramp

primary
#313D8A
secondary
#B2A865
accent
#C551D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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