#313A5B#313A5B

#313A5B is a dark, muted blue. Relative luminance 0.044; OKLCH L 35.6% C 0.059 H 271.5°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#313A5B
RGBrgb(49, 58, 91)
HSLhsl(227, 30%, 27%)
HSVhsv(227, 46%, 36%)
CMYKcmyk(46.2%, 36.3%, 0%, 64.3%)
CIE-LABlab(25.06, 6.12, -20.94)
CIE-LCHlch(25.06, 21.82, 286.30°)
OKLaboklab(35.61% 0.0016 -0.0587)
OKLCHoklch(35.61% 0.059 271.5)
XYZxyz(4.6674, 4.4342, 10.5054)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A5B #5B5231
analogous
#314F5B #313A5B #3D315B
triadic
#313A5B #5B313A #3A5B31
tetradic
#313A5B #5B314F #5B5231 #315B3D
square
#313A5B #5B314F #5B5231 #315B3D
split-complementary
#313A5B #5B3D31 #4F5B31
monochromatic
#0B0D14 #1C2133 #313A5B #465383 #5E6EA8

Accessibility & contrast

On white

11.13
#313A5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#313A5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A5B
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A5B#FFFFFF#000000##FFFFFF
##313A5B1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E3D5C
Deuteranopia (green-blind)
#2B3A5A
Tritanopia (blue-blind)
#234146
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #313a5b;
/* rgb */ color: rgb(49, 58, 91);
/* oklch */ color: oklch(35.6% 0.059 271.5);
Tailwind
colors: {
  custom: {
    50: '#6b7089',
    500: '#313a5b',
    950: '#000000',
  },
}
SCSS
$custom: #313a5b;
$custom-light: #6b7089;
$custom-dark: #000000;
JSON
{
  "hex": "#313a5b",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 91
  },
  "hsl": {
    "h": 227.143,
    "s": 30,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35613,
    "c": 0.05876,
    "h": 271.5
  },
  "luminance": 0.04434
}

Semantic roles & 50–950 ramp

primary
#313A5B
secondary
#8C825C
accent
#B162C6
background
#F6F6F8
surface
#EBECF0
border
#C6C7CB
text
#07070B
muted
#7A7A7C

Preview Lab

Preview with #313A5B

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

Preview Lab → · Contrast checker → · Palette generator →

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