#2A313D#2A313D

#2A313D is a dark, muted blue. Relative luminance 0.030; OKLCH L 31.2% C 0.024 H 261.2°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#2A313D
RGBrgb(42, 49, 61)
HSLhsl(218, 18%, 20%)
HSVhsv(218, 31%, 24%)
CMYKcmyk(31.1%, 19.7%, 0%, 76.1%)
CIE-LABlab(20.15, 0.35, -8.55)
CIE-LCHlch(20.15, 8.56, 272.34°)
OKLaboklab(31.17% -0.0036 -0.0234)
OKLCHoklch(31.17% 0.024 261.2)
XYZxyz(2.8952, 3.0257, 4.8454)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A313D #3D362A
analogous
#2A3A3D #2A313D #2C2A3D
triadic
#2A313D #3D2A31 #313D2A
tetradic
#2A313D #3D2A3A #3D362A #2A3D2C
square
#2A313D #3D2A3A #3D362A #2A3D2C
split-complementary
#2A313D #3D2C2A #3A3D2A
monochromatic
#0C0F12 #111419 #2A313D #434E61 #5C6B85

Accessibility & contrast

On white

13.08
#2A313D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2A313D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A313D
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A313D#FFFFFF#000000##FFFFFF
##2A313D1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a313d;
/* rgb */ color: rgb(42, 49, 61);
/* oklch */ color: oklch(31.2% 0.024 261.2);
Tailwind
colors: {
  custom: {
    50: '#646972',
    500: '#2a313d',
    950: '#000000',
  },
}
SCSS
$custom: #2a313d;
$custom-light: #646972;
$custom-dark: #000000;
JSON
{
  "hex": "#2a313d",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 61
  },
  "hsl": {
    "h": 217.895,
    "s": 18.447,
    "l": 20.196
  },
  "oklch": {
    "l": 0.31166,
    "c": 0.02372,
    "h": 261.2
  },
  "luminance": 0.03026
}

Semantic roles & 50–950 ramp

primary
#2A313D
secondary
#6E6555
accent
#9E6DBB
background
#F5F6F6
surface
#EAEBEC
border
#C6C6C7
text
#050608
muted
#797A7B

Preview Lab

Preview with #2A313D

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

Preview Lab → · Contrast checker → · Palette generator →

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