#313D74#313D74

#313D74 is a dark, moderate blue. Relative luminance 0.053; OKLCH L 37.9% C 0.095 H 271.9°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#313D74
RGBrgb(49, 61, 116)
HSLhsl(229, 41%, 32%)
HSVhsv(229, 58%, 45%)
CMYKcmyk(57.8%, 47.4%, 0%, 54.5%)
CIE-LABlab(27.44, 12.81, -33.25)
CIE-LCHlch(27.44, 35.63, 291.07°)
OKLaboklab(37.92% 0.0032 -0.0947)
OKLCHoklch(37.92% 0.095 271.9)
XYZxyz(6.0867, 5.2510, 17.2124)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D74 #746831
analogous
#315E74 #313D74 #473174
triadic
#313D74 #74313D #3D7431
tetradic
#313D74 #74315E #746831 #317447
square
#313D74 #74315E #746831 #317447
split-complementary
#313D74 #744731 #5E7431
monochromatic
#0D101E #1F2649 #313D74 #43549F #6373BD

Accessibility & contrast

On white

10.24
#313D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#313D74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D74
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D74#FFFFFF#000000##FFFFFF
##313D741.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244476
Deuteranopia (green-blind)
#1C3E73
Tritanopia (blue-blind)
#0C4953
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313d74;
/* rgb */ color: rgb(49, 61, 116);
/* oklch */ color: oklch(37.9% 0.095 271.9);
Tailwind
colors: {
  custom: {
    50: '#6f729c',
    500: '#313d74',
    950: '#000000',
  },
}
SCSS
$custom: #313d74;
$custom-light: #6f729c;
$custom-dark: #000000;
JSON
{
  "hex": "#313d74",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 116
  },
  "hsl": {
    "h": 229.254,
    "s": 40.606,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37921,
    "c": 0.09471,
    "h": 271.9
  },
  "luminance": 0.05251
}

Semantic roles & 50–950 ramp

primary
#313D74
secondary
#A4975C
accent
#BB57D0
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #313D74

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

Preview Lab → · Contrast checker → · Palette generator →

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