#313A74#313A74

#313A74 is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.3% C 0.099 H 274.0°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#313A74
RGBrgb(49, 58, 116)
HSLhsl(232, 41%, 32%)
HSVhsv(232, 58%, 45%)
CMYKcmyk(57.8%, 50%, 0%, 54.5%)
CIE-LABlab(26.56, 14.86, -34.65)
CIE-LCHlch(26.56, 37.70, 293.22°)
OKLaboklab(37.25% 0.0069 -0.0988)
OKLCHoklch(37.25% 0.099 274)
XYZxyz(5.9310, 4.9396, 17.1605)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A74 #746B31
analogous
#315C74 #313A74 #493174
triadic
#313A74 #74313A #3A7431
tetradic
#313A74 #74315C #746B31 #317449
square
#313A74 #74315C #746B31 #317449
split-complementary
#313A74 #744931 #5C7431
monochromatic
#0D0F1E #1F2449 #313A74 #43509F #636FBD

Accessibility & contrast

On white

10.56
#313A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#313A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A74
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A74#FFFFFF#000000##FFFFFF
##313A741.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4276
Deuteranopia (green-blind)
#163C73
Tritanopia (blue-blind)
#0D4751
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313a74;
/* rgb */ color: rgb(49, 58, 116);
/* oklch */ color: oklch(37.3% 0.099 274.0);
Tailwind
colors: {
  custom: {
    50: '#6f6f9c',
    500: '#313a74',
    950: '#000000',
  },
}
SCSS
$custom: #313a74;
$custom-light: #6f6f9c;
$custom-dark: #000000;
JSON
{
  "hex": "#313a74",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 116
  },
  "hsl": {
    "h": 231.94,
    "s": 40.606,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37254,
    "c": 0.09905,
    "h": 274
  },
  "luminance": 0.0494
}

Semantic roles & 50–950 ramp

primary
#313A74
secondary
#A49B5C
accent
#C057D0
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #313A74

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

Preview Lab → · Contrast checker → · Palette generator →

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