#2A2840#2A2840

#2A2840 is a dark, muted blue. Relative luminance 0.024; OKLCH L 29.1% C 0.043 H 287.2°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#2A2840
RGBrgb(42, 40, 64)
HSLhsl(245, 23%, 20%)
HSVhsv(245, 38%, 25%)
CMYKcmyk(34.4%, 37.5%, 0%, 74.9%)
CIE-LABlab(17.37, 7.58, -14.89)
CIE-LCHlch(17.37, 16.71, 296.97°)
OKLaboklab(29.05% 0.0128 -0.0414)
OKLCHoklch(29.05% 0.043 287.2)
XYZxyz(2.6388, 2.3799, 5.1698)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2840 #3E4028
analogous
#283240 #2A2840 #362840
triadic
#2A2840 #402A28 #28402A
tetradic
#2A2840 #402832 #3E4028 #284036
square
#2A2840 #402832 #3E4028 #284036
split-complementary
#2A2840 #403628 #324028
monochromatic
#0C0C13 #11101A #2A2840 #434066 #5B578B

Accessibility & contrast

On white

14.23
#2A2840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2A2840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2840
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2840#FFFFFF#000000##FFFFFF
##2A28401.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212B41
Deuteranopia (green-blind)
#212A3F
Tritanopia (blue-blind)
#252C31
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a2840;
/* rgb */ color: rgb(42, 40, 64);
/* oklch */ color: oklch(29.1% 0.043 287.2);
Tailwind
colors: {
  custom: {
    50: '#646175',
    500: '#2a2840',
    950: '#000000',
  },
}
SCSS
$custom: #2a2840;
$custom-light: #646175;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2840",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 64
  },
  "hsl": {
    "h": 245,
    "s": 23.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29055,
    "c": 0.04337,
    "h": 287.2
  },
  "luminance": 0.0238
}

Semantic roles & 50–950 ramp

primary
#2A2840
secondary
#6F7252
accent
#C068B8
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050508
muted
#7A797B

Preview Lab

Preview with #2A2840

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

Preview Lab → · Contrast checker → · Palette generator →

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