#313C8A#313C8A

#313C8A is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.4% C 0.129 H 272.9°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#313C8A
RGBrgb(49, 60, 138)
HSLhsl(233, 48%, 37%)
HSVhsv(233, 64%, 54%)
CMYKcmyk(64.5%, 56.5%, 0%, 45.9%)
CIE-LABlab(28.69, 21.52, -45.00)
CIE-LCHlch(28.69, 49.88, 295.56°)
OKLaboklab(39.36% 0.0066 -0.1292)
OKLCHoklch(39.36% 0.129 272.9)
XYZxyz(7.4684, 5.7190, 24.7501)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C8A #8A7F31
analogous
#31698A #313C8A #53318A
triadic
#313C8A #8A313C #3C8A31
tetradic
#313C8A #8A3169 #8A7F31 #318A53
square
#313C8A #8A3169 #8A7F31 #318A53
split-complementary
#313C8A #8A5331 #698A31
monochromatic
#111530 #21285D #313C8A #4150B7 #6B77CA

Accessibility & contrast

On white

9.79
#313C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#313C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313C8A
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C8A#FFFFFF#000000##FFFFFF
##313C8A1.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01488D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313c8a;
/* rgb */ color: rgb(49, 60, 138);
/* oklch */ color: oklch(39.4% 0.129 272.9);
Tailwind
colors: {
  custom: {
    50: '#7371ad',
    500: '#313c8a',
    950: '#000000',
  },
}
SCSS
$custom: #313c8a;
$custom-light: #7371ad;
$custom-dark: #000000;
JSON
{
  "hex": "#313c8a",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 138
  },
  "hsl": {
    "h": 232.584,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39361,
    "c": 0.12941,
    "h": 272.9
  },
  "luminance": 0.0572
}

Semantic roles & 50–950 ramp

primary
#313C8A
secondary
#B2A865
accent
#C751D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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