#313C6F#313C6F

#313C6F is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.4% C 0.088 H 272.3°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#313C6F
RGBrgb(49, 60, 111)
HSLhsl(229, 39%, 31%)
HSVhsv(229, 56%, 44%)
CMYKcmyk(55.9%, 45.9%, 0%, 56.5%)
CIE-LABlab(26.83, 11.70, -31.05)
CIE-LCHlch(26.83, 33.18, 290.64°)
OKLaboklab(37.35% 0.0036 -0.0882)
OKLCHoklch(37.35% 0.088 272.3)
XYZxyz(5.7508, 5.0320, 15.7041)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C6F #6F6431
analogous
#315B6F #313C6F #45316F
triadic
#313C6F #6F313C #3C6F31
tetradic
#313C6F #6F315B #6F6431 #316F45
square
#313C6F #6F315B #6F6431 #316F45
split-complementary
#313C6F #6F4531 #5B6F31
monochromatic
#0C0E1A #1E2545 #313C6F #445399 #6171B9

Accessibility & contrast

On white

10.47
#313C6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#313C6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313C6F
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C6F#FFFFFF#000000##FFFFFF
##313C6F1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264271
Deuteranopia (green-blind)
#1F3D6E
Tritanopia (blue-blind)
#134750
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313c6f;
/* rgb */ color: rgb(49, 60, 111);
/* oklch */ color: oklch(37.4% 0.088 272.3);
Tailwind
colors: {
  custom: {
    50: '#6e7198',
    500: '#313c6f',
    950: '#000000',
  },
}
SCSS
$custom: #313c6f;
$custom-light: #6e7198;
$custom-dark: #000000;
JSON
{
  "hex": "#313c6f",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 111
  },
  "hsl": {
    "h": 229.355,
    "s": 38.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37351,
    "c": 0.08828,
    "h": 272.3
  },
  "luminance": 0.05032
}

Semantic roles & 50–950 ramp

primary
#313C6F
secondary
#A0945C
accent
#BA59CF
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #313C6F

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

Preview Lab → · Contrast checker → · Palette generator →

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