#313A6F#313A6F

#313A6F is a dark, moderate blue. Relative luminance 0.048; OKLCH L 36.9% C 0.091 H 273.8°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#313A6F
RGBrgb(49, 58, 111)
HSLhsl(231, 39%, 31%)
HSVhsv(231, 56%, 44%)
CMYKcmyk(55.9%, 47.7%, 0%, 56.5%)
CIE-LABlab(26.23, 13.07, -31.99)
CIE-LCHlch(26.23, 34.56, 292.22°)
OKLaboklab(36.9% 0.0061 -0.091)
OKLCHoklch(36.9% 0.091 273.8)
XYZxyz(5.6480, 4.8264, 15.6698)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A6F #6F6631
analogous
#31596F #313A6F #47316F
triadic
#313A6F #6F313A #3A6F31
tetradic
#313A6F #6F3159 #6F6631 #316F47
square
#313A6F #6F3159 #6F6631 #316F47
split-complementary
#313A6F #6F4731 #596F31
monochromatic
#0C0E1A #1E2445 #313A6F #445099 #616EB9

Accessibility & contrast

On white

10.68
#313A6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313A6F
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A6F#FFFFFF#000000##FFFFFF
##313A6F1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234171
Deuteranopia (green-blind)
#1C3C6E
Tritanopia (blue-blind)
#14464F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #313a6f;
/* rgb */ color: rgb(49, 58, 111);
/* oklch */ color: oklch(36.9% 0.091 273.8);
Tailwind
colors: {
  custom: {
    50: '#6e6f99',
    500: '#313a6f',
    950: '#000000',
  },
}
SCSS
$custom: #313a6f;
$custom-light: #6e6f99;
$custom-dark: #000000;
JSON
{
  "hex": "#313a6f",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 111
  },
  "hsl": {
    "h": 231.29,
    "s": 38.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.369,
    "c": 0.0912,
    "h": 273.8
  },
  "luminance": 0.04827
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313A6F

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

Preview Lab → · Contrast checker → · Palette generator →

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