#313D8F#313D8F

#313D8F is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.0% C 0.135 H 272.5°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#313D8F
RGBrgb(49, 61, 143)
HSLhsl(232, 49%, 38%)
HSVhsv(232, 66%, 56%)
CMYKcmyk(65.7%, 57.3%, 0%, 43.9%)
CIE-LABlab(29.34, 22.68, -47.03)
CIE-LCHlch(29.34, 52.22, 295.74°)
OKLaboklab(39.97% 0.0058 -0.1352)
OKLCHoklch(39.97% 0.135 272.5)
XYZxyz(7.8916, 5.9729, 26.7183)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D8F #8F8331
analogous
#316C8F #313D8F #54318F
triadic
#313D8F #8F313D #3D8F31
tetradic
#313D8F #8F316C #8F8331 #318F54
square
#313D8F #8F316C #8F8331 #318F54
split-complementary
#313D8F #8F5431 #6C8F31
monochromatic
#121634 #212A61 #313D8F #4150BD #6D7ACD

Accessibility & contrast

On white

9.57
#313D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#313D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D8F
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D8F#FFFFFF#000000##FFFFFF
##313D8F1.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#005160
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #313d8f;
/* rgb */ color: rgb(49, 61, 143);
/* oklch */ color: oklch(40.0% 0.135 272.5);
Tailwind
colors: {
  custom: {
    50: '#7472b0',
    500: '#313d8f',
    950: '#000000',
  },
}
SCSS
$custom: #313d8f;
$custom-light: #7472b0;
$custom-dark: #000000;
JSON
{
  "hex": "#313d8f",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 143
  },
  "hsl": {
    "h": 232.34,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39969,
    "c": 0.13532,
    "h": 272.5
  },
  "luminance": 0.05974
}

Semantic roles & 50–950 ramp

primary
#313D8F
secondary
#B5AB67
accent
#C74FD9
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090811
muted
#7B7B80

Preview Lab

Preview with #313D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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