#313D9D#313D9D

#313D9D is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.1% C 0.155 H 272.2°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#313D9D
RGBrgb(49, 61, 157)
HSLhsl(233, 52%, 40%)
HSVhsv(233, 69%, 62%)
CMYKcmyk(68.8%, 61.1%, 0%, 38.4%)
CIE-LABlab(30.46, 27.81, -53.78)
CIE-LCHlch(30.46, 60.54, 297.35°)
OKLaboklab(41.15% 0.0059 -0.155)
OKLCHoklch(41.15% 0.155 272.2)
XYZxyz(9.0191, 6.4239, 32.6564)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D9D #9D9131
analogous
#31739D #313D9D #5B319D
triadic
#313D9D #9D313D #3D9D31
tetradic
#313D9D #9D3173 #9D9131 #319D5B
square
#313D9D #9D3173 #9D9131 #319D5B
split-complementary
#313D9D #9D5B31 #739D31
monochromatic
#141940 #222B6E #313D9D #4654C5 #757FD4

Accessibility & contrast

On white

9.19
#313D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#313D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D9D
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D9D#FFFFFF#000000##FFFFFF
##313D9D1.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#00439B
Tritanopia (blue-blind)
#005567
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #313d9d;
/* rgb */ color: rgb(49, 61, 157);
/* oklch */ color: oklch(41.1% 0.155 272.2);
Tailwind
colors: {
  custom: {
    50: '#7772bb',
    500: '#313d9d',
    950: '#000000',
  },
}
SCSS
$custom: #313d9d;
$custom-light: #7772bb;
$custom-dark: #000000;
JSON
{
  "hex": "#313d9d",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 157
  },
  "hsl": {
    "h": 233.333,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41147,
    "c": 0.15513,
    "h": 272.2
  },
  "luminance": 0.06425
}

Semantic roles & 50–950 ramp

primary
#313D9D
secondary
#BCB36E
accent
#CC4CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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