#313E9B#313E9B

#313E9B is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.2% C 0.151 H 271.9°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#313E9B
RGBrgb(49, 62, 155)
HSLhsl(233, 52%, 40%)
HSVhsv(233, 68%, 61%)
CMYKcmyk(68.4%, 60%, 0%, 39.2%)
CIE-LABlab(30.55, 26.42, -52.40)
CIE-LCHlch(30.55, 58.69, 296.75°)
OKLaboklab(41.17% 0.0051 -0.151)
OKLCHoklch(41.17% 0.151 271.9)
XYZxyz(8.9037, 6.4639, 31.7824)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E9B #9B8E31
analogous
#31739B #313E9B #59319B
triadic
#313E9B #9B313E #3E9B31
tetradic
#313E9B #9B3173 #9B8E31 #319B59
square
#313E9B #9B3173 #9B8E31 #319B59
split-complementary
#313E9B #9B5931 #739B31
monochromatic
#14193E #222B6D #313E9B #4555C4 #737FD3

Accessibility & contrast

On white

9.16
#313E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313E9B
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E9B#FFFFFF#000000##FFFFFF
##313E9B1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#005566
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #313e9b;
/* rgb */ color: rgb(49, 62, 155);
/* oklch */ color: oklch(41.2% 0.151 271.9);
Tailwind
colors: {
  custom: {
    50: '#7773b9',
    500: '#313e9b',
    950: '#000000',
  },
}
SCSS
$custom: #313e9b;
$custom-light: #7773b9;
$custom-dark: #000000;
JSON
{
  "hex": "#313e9b",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 155
  },
  "hsl": {
    "h": 232.642,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.41168,
    "c": 0.15107,
    "h": 271.9
  },
  "luminance": 0.06465
}

Semantic roles & 50–950 ramp

primary
#313E9B
secondary
#BBB16D
accent
#CA4CDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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