#313D9B#313D9B

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

Color values

HEX#313D9B
RGBrgb(49, 61, 155)
HSLhsl(233, 52%, 40%)
HSVhsv(233, 68%, 61%)
CMYKcmyk(68.4%, 60.6%, 0%, 39.2%)
CIE-LABlab(30.29, 27.08, -52.83)
CIE-LCHlch(30.29, 59.36, 297.14°)
OKLaboklab(40.98% 0.006 -0.1522)
OKLCHoklch(40.98% 0.152 272.2)
XYZxyz(8.8498, 6.3562, 31.7645)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D9B #9B8F31
analogous
#31729B #313D9B #5A319B
triadic
#313D9B #9B313D #3D9B31
tetradic
#313D9B #9B3172 #9B8F31 #319B5A
square
#313D9B #9B3172 #9B8F31 #319B5A
split-complementary
#313D9B #9B5A31 #729B31
monochromatic
#14183E #222B6D #313D9B #4553C4 #737ED3

Accessibility & contrast

On white

9.25
#313D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#313D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D9B
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D9B#FFFFFF#000000##FFFFFF
##313D9B1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#005466
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #313d9b;
/* rgb */ color: rgb(49, 61, 155);
/* oklch */ color: oklch(41.0% 0.152 272.2);
Tailwind
colors: {
  custom: {
    50: '#7772b9',
    500: '#313d9b',
    950: '#000000',
  },
}
SCSS
$custom: #313d9b;
$custom-light: #7772b9;
$custom-dark: #000000;
JSON
{
  "hex": "#313d9b",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 155
  },
  "hsl": {
    "h": 233.208,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.40975,
    "c": 0.15236,
    "h": 272.2
  },
  "luminance": 0.06357
}

Semantic roles & 50–950 ramp

primary
#313D9B
secondary
#BBB26D
accent
#CB4CDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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