#313C9D#313C9D

#313C9D is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.0% C 0.156 H 272.5°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#313C9D
RGBrgb(49, 60, 157)
HSLhsl(234, 52%, 40%)
HSVhsv(234, 69%, 62%)
CMYKcmyk(68.8%, 61.8%, 0%, 38.4%)
CIE-LABlab(30.20, 28.47, -54.19)
CIE-LCHlch(30.20, 61.21, 297.71°)
OKLaboklab(40.96% 0.0068 -0.1563)
OKLCHoklch(40.96% 0.156 272.5)
XYZxyz(8.9662, 6.3182, 32.6388)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C9D #9D9231
analogous
#31729D #313C9D #5C319D
triadic
#313C9D #9D313C #3C9D31
tetradic
#313C9D #9D3172 #9D9231 #319D5C
square
#313C9D #9D3172 #9D9231 #319D5C
split-complementary
#313C9D #9D5C31 #729D31
monochromatic
#141840 #222A6E #313C9D #4653C5 #757ED4

Accessibility & contrast

On white

9.28
#313C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#313C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313C9D
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C9D#FFFFFF#000000##FFFFFF
##313C9D1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#005466
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #313c9d;
/* rgb */ color: rgb(49, 60, 157);
/* oklch */ color: oklch(41.0% 0.156 272.5);
Tailwind
colors: {
  custom: {
    50: '#7771bb',
    500: '#313c9d',
    950: '#000000',
  },
}
SCSS
$custom: #313c9d;
$custom-light: #7771bb;
$custom-dark: #000000;
JSON
{
  "hex": "#313c9d",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 157
  },
  "hsl": {
    "h": 233.889,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40958,
    "c": 0.15641,
    "h": 272.5
  },
  "luminance": 0.06319
}

Semantic roles & 50–950 ramp

primary
#313C9D
secondary
#BCB46E
accent
#CD4CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #313C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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