#313E8D#313E8D

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

Color values

HEX#313E8D
RGBrgb(49, 62, 141)
HSLhsl(232, 48%, 37%)
HSVhsv(232, 65%, 55%)
CMYKcmyk(65.2%, 56%, 0%, 44.7%)
CIE-LABlab(29.46, 21.27, -45.61)
CIE-LCHlch(29.46, 50.32, 295.00°)
OKLaboklab(40.01% 0.0048 -0.131)
OKLCHoklch(40.01% 0.131 272.1)
XYZxyz(7.7954, 6.0206, 25.9454)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E8D #8D8031
analogous
#316C8D #313E8D #52318D
triadic
#313E8D #8D313E #3E8D31
tetradic
#313E8D #8D316C #8D8031 #318D52
square
#313E8D #8D316C #8D8031 #318D52
split-complementary
#313E8D #8D5231 #6C8D31
monochromatic
#111632 #212A60 #313E8D #4152BA #6C7ACC

Accessibility & contrast

On white

9.53
#313E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#313E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E8D
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E8D#FFFFFF#000000##FFFFFF
##313E8D1.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034A90
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#00515F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #313e8d;
/* rgb */ color: rgb(49, 62, 141);
/* oklch */ color: oklch(40.0% 0.131 272.1);
Tailwind
colors: {
  custom: {
    50: '#7473af',
    500: '#313e8d',
    950: '#000000',
  },
}
SCSS
$custom: #313e8d;
$custom-light: #7473af;
$custom-dark: #000000;
JSON
{
  "hex": "#313e8d",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 141
  },
  "hsl": {
    "h": 231.522,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40011,
    "c": 0.13108,
    "h": 272.1
  },
  "luminance": 0.06021
}

Semantic roles & 50–950 ramp

primary
#313E8D
secondary
#B4A966
accent
#C550D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #313E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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