#313B9E#313B9E

#313B9E is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.9% C 0.159 H 272.7°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#313B9E
RGBrgb(49, 59, 158)
HSLhsl(234, 53%, 41%)
HSVhsv(234, 69%, 62%)
CMYKcmyk(69%, 62.7%, 0%, 38%)
CIE-LABlab(30.03, 29.49, -55.08)
CIE-LCHlch(30.03, 62.47, 298.16°)
OKLaboklab(40.86% 0.0075 -0.1589)
OKLCHoklch(40.86% 0.159 272.7)
XYZxyz(9.0001, 6.2487, 33.0729)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B9E #9E9431
analogous
#31729E #313B9E #5D319E
triadic
#313B9E #9E313B #3B9E31
tetradic
#313B9E #9E3172 #9E9431 #319E5D
square
#313B9E #9E3172 #9E9431 #319E5D
split-complementary
#313B9E #9E5D31 #729E31
monochromatic
#141841 #232A6F #313B9E #4652C6 #757ED4

Accessibility & contrast

On white

9.33
#313B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#313B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B9E
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B9E#FFFFFF#000000##FFFFFF
##313B9E1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#005467
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #313b9e;
/* rgb */ color: rgb(49, 59, 158);
/* oklch */ color: oklch(40.9% 0.159 272.7);
Tailwind
colors: {
  custom: {
    50: '#7771bb',
    500: '#313b9e',
    950: '#000000',
  },
}
SCSS
$custom: #313b9e;
$custom-light: #7771bb;
$custom-dark: #000000;
JSON
{
  "hex": "#313b9e",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 158
  },
  "hsl": {
    "h": 234.495,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40858,
    "c": 0.15904,
    "h": 272.7
  },
  "luminance": 0.0625
}

Semantic roles & 50–950 ramp

primary
#313B9E
secondary
#BCB56E
accent
#CF4CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #313B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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