#313C7A#313C7A

#313C7A is a dark, moderate blue. Relative luminance 0.053; OKLCH L 38.1% C 0.105 H 272.9°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#313C7A
RGBrgb(49, 60, 122)
HSLhsl(231, 43%, 34%)
HSVhsv(231, 60%, 48%)
CMYKcmyk(59.8%, 50.8%, 0%, 52.2%)
CIE-LABlab(27.54, 15.67, -36.87)
CIE-LCHlch(27.54, 40.06, 293.02°)
OKLaboklab(38.13% 0.0053 -0.1053)
OKLCHoklch(38.13% 0.105 272.9)
XYZxyz(6.3942, 5.2893, 19.0926)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C7A #7A6F31
analogous
#31607A #313C7A #4A317A
triadic
#313C7A #7A313C #3C7A31
tetradic
#313C7A #7A3160 #7A6F31 #317A4A
square
#313C7A #7A3160 #7A6F31 #317A4A
split-complementary
#313C7A #7A4A31 #607A31
monochromatic
#0E1123 #1F274E #313C7A #4351A6 #6472C1

Accessibility & contrast

On white

10.20
#313C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#313C7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313C7A
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C7A#FFFFFF#000000##FFFFFF
##313C7A1.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D447C
Deuteranopia (green-blind)
#113E79
Tritanopia (blue-blind)
#014A55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313c7a;
/* rgb */ color: rgb(49, 60, 122);
/* oklch */ color: oklch(38.1% 0.105 272.9);
Tailwind
colors: {
  custom: {
    50: '#7071a1',
    500: '#313c7a',
    950: '#000000',
  },
}
SCSS
$custom: #313c7a;
$custom-light: #7071a1;
$custom-dark: #000000;
JSON
{
  "hex": "#313c7a",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 122
  },
  "hsl": {
    "h": 230.959,
    "s": 42.69,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38129,
    "c": 0.10544,
    "h": 272.9
  },
  "luminance": 0.0529
}

Semantic roles & 50–950 ramp

primary
#313C7A
secondary
#A89D5E
accent
#C055D2
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#08070F
muted
#7B7A7E

Preview Lab

Preview with #313C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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