#2A313E#2A313E

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

Color values

HEX#2A313E
RGBrgb(42, 49, 62)
HSLhsl(219, 19%, 20%)
HSVhsv(219, 32%, 24%)
CMYKcmyk(32.3%, 21%, 0%, 75.7%)
CIE-LABlab(20.19, 0.65, -9.17)
CIE-LCHlch(20.19, 9.19, 274.05°)
OKLaboklab(31.22% -0.0032 -0.0252)
OKLCHoklch(31.22% 0.025 262.7)
XYZxyz(2.9224, 3.0366, 4.9886)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A313E #3E372A
analogous
#2A3B3E #2A313E #2D2A3E
triadic
#2A313E #3E2A31 #313E2A
tetradic
#2A313E #3E2A3B #3E372A #2A3E2D
square
#2A313E #3E2A3B #3E372A #2A3E2D
split-complementary
#2A313E #3E2D2A #3B3E2A
monochromatic
#0C0E12 #11141A #2A313E #434E62 #5B6B87

Accessibility & contrast

On white

13.06
#2A313E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A313E
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A313E#FFFFFF#000000##FFFFFF
##2A313E1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D323F
Deuteranopia (green-blind)
#2B303E
Tritanopia (blue-blind)
#253435
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a313e;
/* rgb */ color: rgb(42, 49, 62);
/* oklch */ color: oklch(31.2% 0.025 262.7);
Tailwind
colors: {
  custom: {
    50: '#646973',
    500: '#2a313e',
    950: '#000000',
  },
}
SCSS
$custom: #2a313e;
$custom-light: #646973;
$custom-dark: #000000;
JSON
{
  "hex": "#2a313e",
  "rgb": {
    "r": 42,
    "g": 49,
    "b": 62
  },
  "hsl": {
    "h": 219,
    "s": 19.231,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31215,
    "c": 0.02537,
    "h": 262.7
  },
  "luminance": 0.03037
}

Semantic roles & 50–950 ramp

primary
#2A313E
secondary
#6F6655
accent
#A06CBC
background
#F5F6F6
surface
#EAEBEC
border
#C6C6C7
text
#050608
muted
#797A7B

Preview Lab

Preview with #2A313E

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

Preview Lab → · Contrast checker → · Palette generator →

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