#313D7E#313D7E

#313D7E is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.6% C 0.110 H 272.4°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#313D7E
RGBrgb(49, 61, 126)
HSLhsl(231, 44%, 34%)
HSVhsv(231, 61%, 49%)
CMYKcmyk(61.1%, 51.6%, 0%, 50.6%)
CIE-LABlab(28.10, 16.44, -38.48)
CIE-LCHlch(28.10, 41.84, 293.13°)
OKLaboklab(38.64% 0.0046 -0.11)
OKLCHoklch(38.64% 0.11 272.4)
XYZxyz(6.7000, 5.4963, 20.4424)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D7E #7E7231
analogous
#31647E #313D7E #4C317E
triadic
#313D7E #7E313D #3D7E31
tetradic
#313D7E #7E3164 #7E7231 #317E4C
square
#313D7E #7E3164 #7E7231 #317E4C
split-complementary
#313D7E #7E4C31 #647E31
monochromatic
#0F1226 #202852 #313D7E #4252AA #6675C3

Accessibility & contrast

On white

10.00
#313D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#313D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D7E
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D7E#FFFFFF#000000##FFFFFF
##313D7E1.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4680
Deuteranopia (green-blind)
#0D3F7D
Tritanopia (blue-blind)
#004C57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313d7e;
/* rgb */ color: rgb(49, 61, 126);
/* oklch */ color: oklch(38.6% 0.110 272.4);
Tailwind
colors: {
  custom: {
    50: '#7172a4',
    500: '#313d7e',
    950: '#000000',
  },
}
SCSS
$custom: #313d7e;
$custom-light: #7172a4;
$custom-dark: #000000;
JSON
{
  "hex": "#313d7e",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 126
  },
  "hsl": {
    "h": 230.649,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38642,
    "c": 0.11013,
    "h": 272.4
  },
  "luminance": 0.05497
}

Semantic roles & 50–950 ramp

primary
#313D7E
secondary
#AB9F60
accent
#C054D4
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #313D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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