#2A313B#2A313B

#2A313B is a dark, muted blue. Relative luminance 0.030; OKLCH L 31.1% C 0.020 H 257.3°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#2A313B
RGBrgb(42, 49, 59)
HSLhsl(215, 17%, 20%)
HSVhsv(215, 29%, 23%)
CMYKcmyk(28.8%, 16.9%, 0%, 76.9%)
CIE-LABlab(20.06, -0.24, -7.31)
CIE-LCHlch(20.06, 7.32, 268.11°)
OKLaboklab(31.07% -0.0045 -0.02)
OKLCHoklch(31.07% 0.02 257.3)
XYZxyz(2.8424, 3.0045, 4.5670)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A313B #3B342A
analogous
#2A3A3B #2A313B #2C2A3B
triadic
#2A313B #3B2A31 #313B2A
tetradic
#2A313B #3B2A3A #3B342A #2A3B2C
square
#2A313B #3B2A3A #3B342A #2A3B2C
split-complementary
#2A313B #3B2C2A #3A3B2A
monochromatic
#0D0F12 #111317 #2A313B #434F5F #5D6C83

Accessibility & contrast

On white

13.12
#2A313B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2A313B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A313B
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A313B#FFFFFF#000000##FFFFFF
##2A313B1.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E313B
Deuteranopia (green-blind)
#2C303B
Tritanopia (blue-blind)
#253334
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a313b;
/* rgb */ color: rgb(42, 49, 59);
/* oklch */ color: oklch(31.1% 0.020 257.3);
Tailwind
colors: {
  custom: {
    50: '#646970',
    500: '#2a313b',
    950: '#000000',
  },
}
SCSS
$custom: #2a313b;
$custom-light: #646970;
$custom-dark: #000000;
JSON
{
  "hex": "#2a313b",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 59
  },
  "hsl": {
    "h": 215.294,
    "s": 16.832,
    "l": 19.804
  },
  "oklch": {
    "l": 0.31072,
    "c": 0.02048,
    "h": 257.3
  },
  "luminance": 0.03005
}

Semantic roles & 50–950 ramp

primary
#2A313B
secondary
#6C6255
accent
#9B6EBA
background
#F5F6F6
surface
#EAEBEC
border
#C6C6C7
text
#050607
muted
#797A7A

Preview Lab

Preview with #2A313B

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

Preview Lab → · Contrast checker → · Palette generator →

#2A313B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva