#313B8D#313B8D

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

Color values

HEX#313B8D
RGBrgb(49, 59, 141)
HSLhsl(233, 48%, 37%)
HSVhsv(233, 65%, 55%)
CMYKcmyk(65.2%, 58.2%, 0%, 44.7%)
CIE-LABlab(28.65, 23.29, -46.92)
CIE-LCHlch(28.65, 52.39, 296.40°)
OKLaboklab(39.4% 0.0077 -0.1349)
OKLCHoklch(39.4% 0.135 273.3)
XYZxyz(7.6367, 5.7033, 25.8925)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B8D #8D8331
analogous
#31698D #313B8D #55318D
triadic
#313B8D #8D313B #3B8D31
tetradic
#313B8D #8D3169 #8D8331 #318D55
square
#313B8D #8D3169 #8D8331 #318D55
split-complementary
#313B8D #8D5531 #698D31
monochromatic
#111532 #212860 #313B8D #414EBA #6C77CC

Accessibility & contrast

On white

9.81
#313B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313B8D
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B8D#FFFFFF#000000##FFFFFF
##313B8D1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313b8d;
/* rgb */ color: rgb(49, 59, 141);
/* oklch */ color: oklch(39.4% 0.135 273.3);
Tailwind
colors: {
  custom: {
    50: '#7470af',
    500: '#313b8d',
    950: '#000000',
  },
}
SCSS
$custom: #313b8d;
$custom-light: #7470af;
$custom-dark: #000000;
JSON
{
  "hex": "#313b8d",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 141
  },
  "hsl": {
    "h": 233.478,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39403,
    "c": 0.13512,
    "h": 273.3
  },
  "luminance": 0.05704
}

Semantic roles & 50–950 ramp

primary
#313B8D
secondary
#B4AB66
accent
#C950D8
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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