#2A313C#2A313C

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

Color values

HEX#2A313C
RGBrgb(42, 49, 60)
HSLhsl(217, 18%, 20%)
HSVhsv(217, 30%, 24%)
CMYKcmyk(30%, 18.3%, 0%, 76.5%)
CIE-LABlab(20.10, 0.05, -7.93)
CIE-LCHlch(20.10, 7.93, 270.37°)
OKLaboklab(31.12% -0.0041 -0.0217)
OKLCHoklch(31.12% 0.022 259.4)
XYZxyz(2.8685, 3.0150, 4.7049)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A313C #3C352A
analogous
#2A3A3C #2A313C #2C2A3C
triadic
#2A313C #3C2A31 #313C2A
tetradic
#2A313C #3C2A3A #3C352A #2A3C2C
square
#2A313C #3C2A3A #3C352A #2A3C2C
split-complementary
#2A313C #3C2C2A #3A3C2A
monochromatic
#0D0F12 #111418 #2A313C #434E60 #5C6C84

Accessibility & contrast

On white

13.10
#2A313C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A313C
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A313C#FFFFFF#000000##FFFFFF
##2A313C1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D313D
Deuteranopia (green-blind)
#2B303C
Tritanopia (blue-blind)
#253335
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a313c;
/* rgb */ color: rgb(42, 49, 60);
/* oklch */ color: oklch(31.1% 0.022 259.4);
Tailwind
colors: {
  custom: {
    50: '#646971',
    500: '#2a313c',
    950: '#000000',
  },
}
SCSS
$custom: #2a313c;
$custom-light: #646971;
$custom-dark: #000000;
JSON
{
  "hex": "#2a313c",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 60
  },
  "hsl": {
    "h": 216.667,
    "s": 17.647,
    "l": 20
  },
  "oklch": {
    "l": 0.31119,
    "c": 0.02209,
    "h": 259.4
  },
  "luminance": 0.03015
}

Semantic roles & 50–950 ramp

primary
#2A313C
secondary
#6D6455
accent
#9C6DBA
background
#F5F6F6
surface
#EAEBEC
border
#C6C6C7
text
#050607
muted
#797A7A

Preview Lab

Preview with #2A313C

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

Preview Lab → · Contrast checker → · Palette generator →

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