#313A8B#313A8B

#313A8B is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.0% C 0.134 H 273.7°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#313A8B
RGBrgb(49, 58, 139)
HSLhsl(234, 48%, 37%)
HSVhsv(234, 65%, 55%)
CMYKcmyk(64.7%, 58.3%, 0%, 45.5%)
CIE-LABlab(28.23, 23.23, -46.38)
CIE-LCHlch(28.23, 51.87, 296.61°)
OKLaboklab(39.04% 0.0086 -0.1333)
OKLCHoklch(39.04% 0.134 273.7)
XYZxyz(7.4383, 5.5425, 25.0989)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A8B #8B8231
analogous
#31678B #313A8B #55318B
triadic
#313A8B #8B313A #3A8B31
tetradic
#313A8B #8B3167 #8B8231 #318B55
square
#313A8B #8B3167 #8B8231 #318B55
split-complementary
#313A8B #8B5531 #678B31
monochromatic
#111431 #21275E #313A8B #414DB8 #6B75CB

Accessibility & contrast

On white

9.96
#313A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#313A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A8B
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A8B#FFFFFF#000000##FFFFFF
##313A8B1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313a8b;
/* rgb */ color: rgb(49, 58, 139);
/* oklch */ color: oklch(39.0% 0.134 273.7);
Tailwind
colors: {
  custom: {
    50: '#7370ad',
    500: '#313a8b',
    950: '#000000',
  },
}
SCSS
$custom: #313a8b;
$custom-light: #7370ad;
$custom-dark: #000000;
JSON
{
  "hex": "#313a8b",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 139
  },
  "hsl": {
    "h": 234,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39038,
    "c": 0.13358,
    "h": 273.7
  },
  "luminance": 0.05543
}

Semantic roles & 50–950 ramp

primary
#313A8B
secondary
#B2AB65
accent
#CA50D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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