#313C8B#313C8B

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

Color values

HEX#313C8B
RGBrgb(49, 60, 139)
HSLhsl(233, 48%, 37%)
HSVhsv(233, 65%, 55%)
CMYKcmyk(64.7%, 56.8%, 0%, 45.5%)
CIE-LABlab(28.77, 21.89, -45.50)
CIE-LCHlch(28.77, 50.49, 295.69°)
OKLaboklab(39.44% 0.0066 -0.1307)
OKLCHoklch(39.44% 0.131 272.9)
XYZxyz(7.5411, 5.7481, 25.1332)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C8B #8B8031
analogous
#31698B #313C8B #53318B
triadic
#313C8B #8B313C #3C8B31
tetradic
#313C8B #8B3169 #8B8031 #318B53
square
#313C8B #8B3169 #8B8031 #318B53
split-complementary
#313C8B #8B5331 #698B31
monochromatic
#111531 #21285E #313C8B #4150B8 #6B77CB

Accessibility & contrast

On white

9.77
#313C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#313C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313C8B
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C8B#FFFFFF#000000##FFFFFF
##313C8B1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313c8b;
/* rgb */ color: rgb(49, 60, 139);
/* oklch */ color: oklch(39.4% 0.131 272.9);
Tailwind
colors: {
  custom: {
    50: '#7371ad',
    500: '#313c8b',
    950: '#000000',
  },
}
SCSS
$custom: #313c8b;
$custom-light: #7371ad;
$custom-dark: #000000;
JSON
{
  "hex": "#313c8b",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 139
  },
  "hsl": {
    "h": 232.667,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39442,
    "c": 0.13087,
    "h": 272.9
  },
  "luminance": 0.05749
}

Semantic roles & 50–950 ramp

primary
#313C8B
secondary
#B2A965
accent
#C750D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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