#313E79#313E79

#313E79 is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.5% C 0.101 H 271.6°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#313E79
RGBrgb(49, 62, 121)
HSLhsl(229, 42%, 33%)
HSVhsv(229, 60%, 47%)
CMYKcmyk(59.5%, 48.8%, 0%, 52.5%)
CIE-LABlab(28.06, 13.93, -35.42)
CIE-LCHlch(28.06, 38.06, 291.48°)
OKLaboklab(38.5% 0.0028 -0.101)
OKLCHoklch(38.5% 0.101 271.6)
XYZxyz(6.4393, 5.4782, 18.8035)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E79 #796C31
analogous
#316279 #313E79 #483179
triadic
#313E79 #79313E #3E7931
tetradic
#313E79 #793162 #796C31 #317948
square
#313E79 #793162 #796C31 #317948
split-complementary
#313E79 #794831 #627931
monochromatic
#0E1122 #1F284D #313E79 #4354A5 #6475C0

Accessibility & contrast

On white

10.02
#313E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313E79
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E79#FFFFFF#000000##FFFFFF
##313E791.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22457B
Deuteranopia (green-blind)
#183F78
Tritanopia (blue-blind)
#024B55
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313e79;
/* rgb */ color: rgb(49, 62, 121);
/* oklch */ color: oklch(38.5% 0.101 271.6);
Tailwind
colors: {
  custom: {
    50: '#7073a0',
    500: '#313e79',
    950: '#000000',
  },
}
SCSS
$custom: #313e79;
$custom-light: #7073a0;
$custom-dark: #000000;
JSON
{
  "hex": "#313e79",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 121
  },
  "hsl": {
    "h": 229.167,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38497,
    "c": 0.10106,
    "h": 271.6
  },
  "luminance": 0.05479
}

Semantic roles & 50–950 ramp

primary
#313E79
secondary
#A89A5E
accent
#BC56D2
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#08080F
muted
#7B7B7E

Preview Lab

Preview with #313E79

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

Preview Lab → · Contrast checker → · Palette generator →

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