#313E78#313E78

#313E78 is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.4% C 0.100 H 271.5°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#313E78
RGBrgb(49, 62, 120)
HSLhsl(229, 42%, 33%)
HSVhsv(229, 59%, 47%)
CMYKcmyk(59.2%, 48.3%, 0%, 52.9%)
CIE-LABlab(27.99, 13.57, -34.89)
CIE-LCHlch(27.99, 37.44, 291.25°)
OKLaboklab(38.43% 0.0026 -0.0995)
OKLCHoklch(38.43% 0.1 271.5)
XYZxyz(6.3783, 5.4538, 18.4822)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E78 #786B31
analogous
#316178 #313E78 #473178
triadic
#313E78 #78313E #3E7831
tetradic
#313E78 #783161 #786B31 #317847
square
#313E78 #783161 #786B31 #317847
split-complementary
#313E78 #784731 #617831
monochromatic
#0E1121 #1F284D #313E78 #4354A3 #6475C0

Accessibility & contrast

On white

10.04
#313E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#313E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E78
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E78#FFFFFF#000000##FFFFFF
##313E781.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23457A
Deuteranopia (green-blind)
#193F77
Tritanopia (blue-blind)
#044B55
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313e78;
/* rgb */ color: rgb(49, 62, 120);
/* oklch */ color: oklch(38.4% 0.100 271.5);
Tailwind
colors: {
  custom: {
    50: '#70739f',
    500: '#313e78',
    950: '#000000',
  },
}
SCSS
$custom: #313e78;
$custom-light: #70739f;
$custom-dark: #000000;
JSON
{
  "hex": "#313e78",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 120
  },
  "hsl": {
    "h": 229.014,
    "s": 42.012,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38426,
    "c": 0.09951,
    "h": 271.5
  },
  "luminance": 0.05454
}

Semantic roles & 50–950 ramp

primary
#313E78
secondary
#A79A5E
accent
#BB56D2
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#08080E
muted
#7B7B7E

Preview Lab

Preview with #313E78

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

Preview Lab → · Contrast checker → · Palette generator →

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