#2A2842#2A2842

#2A2842 is a dark, muted blue. Relative luminance 0.024; OKLCH L 29.2% C 0.047 H 286.6°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#2A2842
RGBrgb(42, 40, 66)
HSLhsl(245, 25%, 21%)
HSVhsv(245, 39%, 26%)
CMYKcmyk(36.4%, 39.4%, 0%, 74.1%)
CIE-LABlab(17.47, 8.21, -16.10)
CIE-LCHlch(17.47, 18.08, 297.02°)
OKLaboklab(29.17% 0.0134 -0.0449)
OKLCHoklch(29.17% 0.047 286.6)
XYZxyz(2.6967, 2.4031, 5.4750)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2842 #404228
analogous
#283342 #2A2842 #372842
triadic
#2A2842 #422A28 #28422A
tetradic
#2A2842 #422833 #404228 #284237
square
#2A2842 #422833 #404228 #284237
split-complementary
#2A2842 #423728 #334228
monochromatic
#0C0C13 #12111C #2A2842 #423F68 #5A568E

Accessibility & contrast

On white

14.18
#2A2842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2842
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2842#FFFFFF#000000##FFFFFF
##2A28421.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202C43
Deuteranopia (green-blind)
#202A41
Tritanopia (blue-blind)
#242D32
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a2842;
/* rgb */ color: rgb(42, 40, 66);
/* oklch */ color: oklch(29.2% 0.047 286.6);
Tailwind
colors: {
  custom: {
    50: '#646176',
    500: '#2a2842',
    950: '#000000',
  },
}
SCSS
$custom: #2a2842;
$custom-light: #646176;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2842",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 66
  },
  "hsl": {
    "h": 244.615,
    "s": 24.528,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29173,
    "c": 0.04688,
    "h": 286.6
  },
  "luminance": 0.02403
}

Semantic roles & 50–950 ramp

primary
#2A2842
secondary
#717452
accent
#C167BA
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050508
muted
#7A797B

Preview Lab

Preview with #2A2842

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

Preview Lab → · Contrast checker → · Palette generator →

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