#2A2640#2A2640

#2A2640 is a dark, muted blue. Relative luminance 0.022; OKLCH L 28.6% C 0.047 H 290.1°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#2A2640
RGBrgb(42, 38, 64)
HSLhsl(249, 25%, 20%)
HSVhsv(249, 41%, 25%)
CMYKcmyk(34.4%, 40.6%, 0%, 74.9%)
CIE-LABlab(16.74, 9.01, -15.87)
CIE-LCHlch(16.74, 18.25, 299.58°)
OKLaboklab(28.58% 0.0162 -0.0442)
OKLCHoklch(28.58% 0.047 290.1)
XYZxyz(2.5731, 2.2486, 5.1479)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2640 #3C4026
analogous
#262F40 #2A2640 #372640
triadic
#2A2640 #402A26 #26402A
tetradic
#2A2640 #40262F #3C4026 #264037
square
#2A2640 #40262F #3C4026 #264037
split-complementary
#2A2640 #403726 #2F4026
monochromatic
#0D0B13 #110F1A #2A2640 #433D66 #5C548D

Accessibility & contrast

On white

14.48
#2A2640 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2A2640 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2640
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2640#FFFFFF#000000##FFFFFF
##2A26401.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2A41
Deuteranopia (green-blind)
#1F293F
Tritanopia (blue-blind)
#252B30
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a2640;
/* rgb */ color: rgb(42, 38, 64);
/* oklch */ color: oklch(28.6% 0.047 290.1);
Tailwind
colors: {
  custom: {
    50: '#646075',
    500: '#2a2640',
    950: '#000000',
  },
}
SCSS
$custom: #2a2640;
$custom-light: #646075;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2640",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 64
  },
  "hsl": {
    "h": 249.231,
    "s": 25.49,
    "l": 20
  },
  "oklch": {
    "l": 0.28575,
    "c": 0.04712,
    "h": 290.1
  },
  "luminance": 0.02249
}

Semantic roles & 50–950 ramp

primary
#2A2640
secondary
#6D7250
accent
#C266B4
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050408
muted
#7A797B

Preview Lab

Preview with #2A2640

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

Preview Lab → · Contrast checker → · Palette generator →

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