#313A4E#313A4E

#313A4E is a dark, muted blue. Relative luminance 0.042; OKLCH L 34.9% C 0.037 H 265.7°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#313A4E
RGBrgb(49, 58, 78)
HSLhsl(221, 23%, 25%)
HSVhsv(221, 37%, 31%)
CMYKcmyk(37.2%, 25.6%, 0%, 69.4%)
CIE-LABlab(24.41, 1.93, -13.40)
CIE-LCHlch(24.41, 13.53, 278.19°)
OKLaboklab(34.9% -0.0028 -0.0371)
OKLCHoklch(34.9% 0.037 265.7)
XYZxyz(4.1544, 4.2290, 7.8036)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A4E #4E4531
analogous
#31494E #313A4E #36314E
triadic
#313A4E #4E313A #3A4E31
tetradic
#313A4E #4E3149 #4E4531 #314E36
square
#313A4E #4E3149 #4E4531 #314E36
split-complementary
#313A4E #4E3631 #494E31
monochromatic
#0C0E13 #191E28 #313A4E #495674 #607299

Accessibility & contrast

On white

11.38
#313A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#313A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A4E
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A4E#FFFFFF#000000##FFFFFF
##313A4E1.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#333B4F
Deuteranopia (green-blind)
#31394E
Tritanopia (blue-blind)
#293E41
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #313a4e;
/* rgb */ color: rgb(49, 58, 78);
/* oklch */ color: oklch(34.9% 0.037 265.7);
Tailwind
colors: {
  custom: {
    50: '#6a707f',
    500: '#313a4e',
    950: '#000000',
  },
}
SCSS
$custom: #313a4e;
$custom-light: #6a707f;
$custom-dark: #000000;
JSON
{
  "hex": "#313a4e",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 78
  },
  "hsl": {
    "h": 221.379,
    "s": 22.835,
    "l": 24.902
  },
  "oklch": {
    "l": 0.34901,
    "c": 0.03716,
    "h": 265.7
  },
  "luminance": 0.04229
}

Semantic roles & 50–950 ramp

primary
#313A4E
secondary
#7F745C
accent
#A468BF
background
#F6F6F7
surface
#EBECEE
border
#C6C7C9
text
#06070A
muted
#7A7A7C

Preview Lab

Preview with #313A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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