#31374E#31374E

#31374E is a dark, muted blue. Relative luminance 0.039; OKLCH L 34.2% C 0.041 H 272.8°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#31374E
RGBrgb(49, 55, 78)
HSLhsl(228, 23%, 25%)
HSVhsv(228, 37%, 31%)
CMYKcmyk(37.2%, 29.5%, 0%, 69.4%)
CIE-LABlab(23.46, 3.96, -14.87)
CIE-LCHlch(23.46, 15.39, 284.90°)
OKLaboklab(34.15% 0.002 -0.0413)
OKLCHoklch(34.15% 0.041 272.8)
XYZxyz(4.0076, 3.9353, 7.7547)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31374E #4E4831
analogous
#31464E #31374E #39314E
triadic
#31374E #4E3137 #374E31
tetradic
#31374E #4E3146 #4E4831 #314E39
square
#31374E #4E3146 #4E4831 #314E39
split-complementary
#31374E #4E3931 #464E31
monochromatic
#0C0D13 #191C28 #31374E #495274 #606C99

Accessibility & contrast

On white

11.75
#31374E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#31374E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31374E
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31374E#FFFFFF#000000##FFFFFF
##31374E1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30394F
Deuteranopia (green-blind)
#2E374D
Tritanopia (blue-blind)
#293B3F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #31374e;
/* rgb */ color: rgb(49, 55, 78);
/* oklch */ color: oklch(34.2% 0.041 272.8);
Tailwind
colors: {
  custom: {
    50: '#6a6d7f',
    500: '#31374e',
    950: '#000000',
  },
}
SCSS
$custom: #31374e;
$custom-light: #6a6d7f;
$custom-dark: #000000;
JSON
{
  "hex": "#31374e",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 78
  },
  "hsl": {
    "h": 227.586,
    "s": 22.835,
    "l": 24.902
  },
  "oklch": {
    "l": 0.34154,
    "c": 0.04132,
    "h": 272.8
  },
  "luminance": 0.03935
}

Semantic roles & 50–950 ramp

primary
#31374E
secondary
#7F785C
accent
#AD68BF
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#06070A
muted
#7A7A7C

Preview Lab

Preview with #31374E

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

Preview Lab → · Contrast checker → · Palette generator →

#31374E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva