#313D70#313D70

#313D70 is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.6% C 0.088 H 271.6°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#313D70
RGBrgb(49, 61, 112)
HSLhsl(229, 39%, 32%)
HSVhsv(229, 56%, 44%)
CMYKcmyk(56.3%, 45.5%, 0%, 56.1%)
CIE-LABlab(27.19, 11.37, -31.11)
CIE-LCHlch(27.19, 33.12, 290.07°)
OKLaboklab(37.65% 0.0025 -0.0884)
OKLCHoklch(37.65% 0.088 271.6)
XYZxyz(5.8590, 5.1599, 16.0133)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D70 #706431
analogous
#315D70 #313D70 #453170
triadic
#313D70 #70313D #3D7031
tetradic
#313D70 #70315D #706431 #317045
square
#313D70 #70315D #706431 #317045
split-complementary
#313D70 #704531 #5D7031
monochromatic
#0C0F1B #1E2645 #313D70 #44549B #6172BA

Accessibility & contrast

On white

10.33
#313D70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#313D70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D70
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D70#FFFFFF#000000##FFFFFF
##313D701.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274372
Deuteranopia (green-blind)
#203E6F
Tritanopia (blue-blind)
#124851
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313d70;
/* rgb */ color: rgb(49, 61, 112);
/* oklch */ color: oklch(37.6% 0.088 271.6);
Tailwind
colors: {
  custom: {
    50: '#6e7299',
    500: '#313d70',
    950: '#000000',
  },
}
SCSS
$custom: #313d70;
$custom-light: #6e7299;
$custom-dark: #000000;
JSON
{
  "hex": "#313d70",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 112
  },
  "hsl": {
    "h": 228.571,
    "s": 39.13,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37646,
    "c": 0.08842,
    "h": 271.6
  },
  "luminance": 0.0516
}

Semantic roles & 50–950 ramp

primary
#313D70
secondary
#A1945C
accent
#B959CF
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #313D70

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

Preview Lab → · Contrast checker → · Palette generator →

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