#2A2C40#2A2C40

#2A2C40 is a dark, muted blue. Relative luminance 0.027; OKLCH L 30.0% C 0.036 H 279.6°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#2A2C40
RGBrgb(42, 44, 64)
HSLhsl(235, 21%, 21%)
HSVhsv(235, 34%, 25%)
CMYKcmyk(34.4%, 31.2%, 0%, 74.9%)
CIE-LABlab(18.64, 4.74, -12.91)
CIE-LCHlch(18.64, 13.76, 290.17°)
OKLaboklab(30.04% 0.006 -0.0358)
OKLCHoklch(30.04% 0.036 279.6)
XYZxyz(2.7807, 2.6637, 5.2171)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2C40 #403E2A
analogous
#2A3740 #2A2C40 #332A40
triadic
#2A2C40 #402A2C #2C402A
tetradic
#2A2C40 #402A37 #403E2A #2A4033
square
#2A2C40 #402A37 #403E2A #2A4033
split-complementary
#2A2C40 #40332A #37402A
monochromatic
#0C0D12 #12131B #2A2C40 #424565 #5A5F8A

Accessibility & contrast

On white

13.70
#2A2C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2A2C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2C40
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2C40#FFFFFF#000000##FFFFFF
##2A2C401.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#262E41
Deuteranopia (green-blind)
#252D3F
Tritanopia (blue-blind)
#243033
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a2c40;
/* rgb */ color: rgb(42, 44, 64);
/* oklch */ color: oklch(30.0% 0.036 279.6);
Tailwind
colors: {
  custom: {
    50: '#646575',
    500: '#2a2c40',
    950: '#000000',
  },
}
SCSS
$custom: #2a2c40;
$custom-light: #646575;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2c40",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 64
  },
  "hsl": {
    "h": 234.545,
    "s": 20.755,
    "l": 20.784
  },
  "oklch": {
    "l": 0.3004,
    "c": 0.03626,
    "h": 279.6
  },
  "luminance": 0.02664
}

Semantic roles & 50–950 ramp

primary
#2A2C40
secondary
#716F55
accent
#B66ABD
background
#F6F6F7
surface
#EBEBED
border
#C6C6C8
text
#050508
muted
#7A7A7B

Preview Lab

Preview with #2A2C40

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

Preview Lab → · Contrast checker → · Palette generator →

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