#313A70#313A70

#313A70 is a dark, moderate blue. Relative luminance 0.048; OKLCH L 37.0% C 0.093 H 273.9°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#313A70
RGBrgb(49, 58, 112)
HSLhsl(231, 39%, 32%)
HSVhsv(231, 56%, 44%)
CMYKcmyk(56.3%, 48.2%, 0%, 56.1%)
CIE-LABlab(26.30, 13.43, -32.53)
CIE-LCHlch(26.30, 35.19, 292.43°)
OKLaboklab(36.97% 0.0063 -0.0926)
OKLCHoklch(36.97% 0.093 273.9)
XYZxyz(5.7034, 4.8485, 15.9614)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A70 #706731
analogous
#315A70 #313A70 #483170
triadic
#313A70 #70313A #3A7031
tetradic
#313A70 #70315A #706731 #317048
square
#313A70 #70315A #706731 #317048
split-complementary
#313A70 #704831 #5A7031
monochromatic
#0C0E1B #1E2445 #313A70 #44509B #616EBA

Accessibility & contrast

On white

10.66
#313A70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#313A70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A70
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A70#FFFFFF#000000##FFFFFF
##313A701.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224172
Deuteranopia (green-blind)
#1B3C6F
Tritanopia (blue-blind)
#13464F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #313a70;
/* rgb */ color: rgb(49, 58, 112);
/* oklch */ color: oklch(37.0% 0.093 273.9);
Tailwind
colors: {
  custom: {
    50: '#6e6f99',
    500: '#313a70',
    950: '#000000',
  },
}
SCSS
$custom: #313a70;
$custom-light: #6e6f99;
$custom-dark: #000000;
JSON
{
  "hex": "#313a70",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 112
  },
  "hsl": {
    "h": 231.429,
    "s": 39.13,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3697,
    "c": 0.09278,
    "h": 273.9
  },
  "luminance": 0.04849
}

Semantic roles & 50–950 ramp

primary
#313A70
secondary
#A1975C
accent
#BE59CF
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #313A70

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

Preview Lab → · Contrast checker → · Palette generator →

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