#313C9E#313C9E

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

Color values

HEX#313C9E
RGBrgb(49, 60, 158)
HSLhsl(234, 53%, 41%)
HSVhsv(234, 69%, 62%)
CMYKcmyk(69%, 62%, 0%, 38%)
CIE-LABlab(30.28, 28.83, -54.66)
CIE-LCHlch(30.28, 61.80, 297.81°)
OKLaboklab(41.05% 0.0067 -0.1576)
OKLCHoklch(41.05% 0.158 272.4)
XYZxyz(9.0520, 6.3525, 33.0902)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C9E #9E9331
analogous
#31729E #313C9E #5C319E
triadic
#313C9E #9E313C #3C9E31
tetradic
#313C9E #9E3172 #9E9331 #319E5C
square
#313C9E #9E3172 #9E9331 #319E5C
split-complementary
#313C9E #9E5C31 #729E31
monochromatic
#141941 #232A6F #313C9E #4653C6 #757FD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313C9E#FFFFFF#000000##FFFFFF
##313C9E1.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)
#004CA1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#005567
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #313c9e;
/* rgb */ color: rgb(49, 60, 158);
/* oklch */ color: oklch(41.0% 0.158 272.4);
Tailwind
colors: {
  custom: {
    50: '#7771bb',
    500: '#313c9e',
    950: '#000000',
  },
}
SCSS
$custom: #313c9e;
$custom-light: #7771bb;
$custom-dark: #000000;
JSON
{
  "hex": "#313c9e",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 158
  },
  "hsl": {
    "h": 233.945,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41045,
    "c": 0.15778,
    "h": 272.4
  },
  "luminance": 0.06353
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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