#313C7E#313C7E

#313C7E is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.4% C 0.112 H 272.9°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#313C7E
RGBrgb(49, 60, 126)
HSLhsl(231, 44%, 34%)
HSVhsv(231, 61%, 49%)
CMYKcmyk(61.1%, 52.4%, 0%, 50.6%)
CIE-LABlab(27.82, 17.12, -38.94)
CIE-LCHlch(27.82, 42.54, 293.74°)
OKLaboklab(38.43% 0.0057 -0.1114)
OKLCHoklch(38.43% 0.112 272.9)
XYZxyz(6.6471, 5.3905, 20.4248)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C7E #7E7331
analogous
#31637E #313C7E #4D317E
triadic
#313C7E #7E313C #3C7E31
tetradic
#313C7E #7E3163 #7E7331 #317E4D
square
#313C7E #7E3163 #7E7331 #317E4D
split-complementary
#313C7E #7E4D31 #637E31
monochromatic
#0F1226 #202752 #313C7E #4251AA #6673C3

Accessibility & contrast

On white

10.10
#313C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#313C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313C7E
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C7E#FFFFFF#000000##FFFFFF
##313C7E1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194580
Deuteranopia (green-blind)
#093E7D
Tritanopia (blue-blind)
#004B57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313c7e;
/* rgb */ color: rgb(49, 60, 126);
/* oklch */ color: oklch(38.4% 0.112 272.9);
Tailwind
colors: {
  custom: {
    50: '#7171a4',
    500: '#313c7e',
    950: '#000000',
  },
}
SCSS
$custom: #313c7e;
$custom-light: #7171a4;
$custom-dark: #000000;
JSON
{
  "hex": "#313c7e",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 126
  },
  "hsl": {
    "h": 231.429,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38426,
    "c": 0.11154,
    "h": 272.9
  },
  "luminance": 0.05391
}

Semantic roles & 50–950 ramp

primary
#313C7E
secondary
#ABA060
accent
#C154D4
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #313C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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