#313E70#313E70

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

Color values

HEX#313E70
RGBrgb(49, 62, 112)
HSLhsl(228, 39%, 32%)
HSVhsv(228, 56%, 44%)
CMYKcmyk(56.3%, 44.6%, 0%, 56.1%)
CIE-LABlab(27.48, 10.69, -30.64)
CIE-LCHlch(27.48, 32.45, 289.23°)
OKLaboklab(37.88% 0.0012 -0.087)
OKLCHoklch(37.88% 0.087 270.8)
XYZxyz(5.9129, 5.2677, 16.0313)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E70 #706331
analogous
#315E70 #313E70 #443170
triadic
#313E70 #70313E #3E7031
tetradic
#313E70 #70315E #706331 #317044
square
#313E70 #70315E #706331 #317044
split-complementary
#313E70 #704431 #5E7031
monochromatic
#0C0F1B #1E2645 #313E70 #44569B #6174BA

Accessibility & contrast

On white

10.23
#313E70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313E70
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E70#FFFFFF#000000##FFFFFF
##313E701.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294472
Deuteranopia (green-blind)
#223E6F
Tritanopia (blue-blind)
#124951
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313e70;
/* rgb */ color: rgb(49, 62, 112);
/* oklch */ color: oklch(37.9% 0.087 270.8);
Tailwind
colors: {
  custom: {
    50: '#6e7399',
    500: '#313e70',
    950: '#000000',
  },
}
SCSS
$custom: #313e70;
$custom-light: #6e7399;
$custom-dark: #000000;
JSON
{
  "hex": "#313e70",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 112
  },
  "hsl": {
    "h": 227.619,
    "s": 39.13,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37875,
    "c": 0.087,
    "h": 270.8
  },
  "luminance": 0.05268
}

Semantic roles & 50–950 ramp

primary
#313E70
secondary
#A1935C
accent
#B759CF
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #313E70

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

Preview Lab → · Contrast checker → · Palette generator →

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