#31343F#31343F

#31343F is a dark, near-neutral blue. Relative luminance 0.035; OKLCH L 32.7% C 0.020 H 273.3°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#31343F
RGBrgb(49, 52, 63)
HSLhsl(227, 13%, 22%)
HSVhsv(227, 22%, 25%)
CMYKcmyk(22.2%, 17.5%, 0%, 75.3%)
CIE-LABlab(21.83, 1.56, -7.31)
CIE-LCHlch(21.83, 7.47, 282.06°)
OKLaboklab(32.66% 0.0011 -0.0199)
OKLCHoklch(32.66% 0.02 273.3)
XYZxyz(3.3916, 3.4678, 5.1923)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31343F #3F3C31
analogous
#313B3F #31343F #35313F
triadic
#31343F #3F3134 #343F31
tetradic
#31343F #3F313B #3F3C31 #313F35
square
#31343F #3F313B #3F3C31 #313F35
split-complementary
#31343F #3F3531 #3B3F31
monochromatic
#0D0E11 #16181D #31343F #4C5061 #676D84

Accessibility & contrast

On white

12.40
#31343F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#31343F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31343F
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31343F#FFFFFF#000000##FFFFFF
##31343F1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#313540
Deuteranopia (green-blind)
#30343F
Tritanopia (blue-blind)
#2E3638
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #31343f;
/* rgb */ color: rgb(49, 52, 63);
/* oklch */ color: oklch(32.7% 0.020 273.3);
Tailwind
colors: {
  custom: {
    50: '#696b74',
    500: '#31343f',
    950: '#000000',
  },
}
SCSS
$custom: #31343f;
$custom-light: #696b74;
$custom-dark: #000000;
JSON
{
  "hex": "#31343f",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 63
  },
  "hsl": {
    "h": 227.143,
    "s": 12.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32664,
    "c": 0.01992,
    "h": 273.3
  },
  "luminance": 0.03468
}

Semantic roles & 50–950 ramp

primary
#31343F
secondary
#6F6B5D
accent
#A772B5
background
#F6F6F7
surface
#EBEBED
border
#C6C6C8
text
#060608
muted
#7A7A7B

Preview Lab

Preview with #31343F

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

Preview Lab → · Contrast checker → · Palette generator →

#31343F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva