#313A42#313A42

#313A42 is a dark, near-neutral cyan. Relative luminance 0.041; OKLCH L 34.3% C 0.019 H 245.2°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#313A42
RGBrgb(49, 58, 66)
HSLhsl(208, 15%, 23%)
HSVhsv(208, 26%, 26%)
CMYKcmyk(25.8%, 12.1%, 0%, 74.1%)
CIE-LABlab(23.91, -1.61, -6.19)
CIE-LCHlch(23.91, 6.39, 255.40°)
OKLaboklab(34.34% -0.0078 -0.0168)
OKLCHoklch(34.34% 0.019 245.2)
XYZxyz(3.7628, 4.0723, 5.7410)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A42 #423931
analogous
#314242 #313A42 #313142
triadic
#313A42 #42313A #3A4231
tetradic
#313A42 #423142 #423931 #314231
square
#313A42 #423142 #423931 #314231
split-complementary
#313A42 #423131 #424231
monochromatic
#0D0F12 #171B1F #313A42 #4B5965 #657888

Accessibility & contrast

On white

11.57
#313A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#313A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A42
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A42#FFFFFF#000000##FFFFFF
##313A421.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373A42
Deuteranopia (green-blind)
#353842
Tritanopia (blue-blind)
#2C3C3D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #313a42;
/* rgb */ color: rgb(49, 58, 66);
/* oklch */ color: oklch(34.3% 0.019 245.2);
Tailwind
colors: {
  custom: {
    50: '#697076',
    500: '#313a42',
    950: '#000000',
  },
}
SCSS
$custom: #313a42;
$custom-light: #697076;
$custom-dark: #000000;
JSON
{
  "hex": "#313a42",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 66
  },
  "hsl": {
    "h": 208.235,
    "s": 14.783,
    "l": 22.549
  },
  "oklch": {
    "l": 0.34338,
    "c": 0.01855,
    "h": 245.2
  },
  "luminance": 0.04072
}

Semantic roles & 50–950 ramp

primary
#313A42
secondary
#72675D
accent
#9270B8
background
#F6F6F7
surface
#EBECED
border
#C6C7C8
text
#060708
muted
#7A7A7B

Preview Lab

Preview with #313A42

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

Preview Lab → · Contrast checker → · Palette generator →

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