#313A8D#313A8D

#313A8D is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.2% C 0.136 H 273.6°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#313A8D
RGBrgb(49, 58, 141)
HSLhsl(234, 48%, 37%)
HSVhsv(234, 65%, 55%)
CMYKcmyk(65.2%, 58.9%, 0%, 44.7%)
CIE-LABlab(28.38, 23.96, -47.36)
CIE-LCHlch(28.38, 53.08, 296.84°)
OKLaboklab(39.2% 0.0086 -0.1362)
OKLCHoklch(39.2% 0.136 273.6)
XYZxyz(7.5858, 5.6015, 25.8756)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A8D #8D8431
analogous
#31688D #313A8D #56318D
triadic
#313A8D #8D313A #3A8D31
tetradic
#313A8D #8D3168 #8D8431 #318D56
square
#313A8D #8D3168 #8D8431 #318D56
split-complementary
#313A8D #8D5631 #688D31
monochromatic
#111532 #212760 #313A8D #414DBA #6C76CC

Accessibility & contrast

On white

9.90
#313A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#313A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A8D
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A8D#FFFFFF#000000##FFFFFF
##313A8D1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313a8d;
/* rgb */ color: rgb(49, 58, 141);
/* oklch */ color: oklch(39.2% 0.136 273.6);
Tailwind
colors: {
  custom: {
    50: '#7470af',
    500: '#313a8d',
    950: '#000000',
  },
}
SCSS
$custom: #313a8d;
$custom-light: #7470af;
$custom-dark: #000000;
JSON
{
  "hex": "#313a8d",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 141
  },
  "hsl": {
    "h": 234.13,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39204,
    "c": 0.13646,
    "h": 273.6
  },
  "luminance": 0.05602
}

Semantic roles & 50–950 ramp

primary
#313A8D
secondary
#B4AC66
accent
#CB50D8
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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