#2A263A#2A263A

#2A263A is a dark, muted violet. Relative luminance 0.022; OKLCH L 28.2% C 0.037 H 293.1°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#2A263A
RGBrgb(42, 38, 58)
HSLhsl(252, 21%, 19%)
HSVhsv(252, 34%, 23%)
CMYKcmyk(27.6%, 34.5%, 0%, 77.3%)
CIE-LABlab(16.42, 7.16, -12.19)
CIE-LCHlch(16.42, 14.14, 300.44°)
OKLaboklab(28.23% 0.0144 -0.0337)
OKLCHoklch(28.23% 0.037 293.1)
XYZxyz(2.4115, 2.1839, 4.2967)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A263A #363A26
analogous
#262C3A #2A263A #34263A
triadic
#2A263A #3A2A26 #263A2A
tetradic
#2A263A #3A262C #363A26 #263A34
square
#2A263A #3A262C #363A26 #263A34
split-complementary
#2A263A #3A3426 #2C3A26
monochromatic
#0D0C12 #0F0E15 #2A263A #453E5F #605684

Accessibility & contrast

On white

14.62
#2A263A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2A263A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A263A
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A263A#FFFFFF#000000##FFFFFF
##2A263A1.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21293B
Deuteranopia (green-blind)
#212839
Tritanopia (blue-blind)
#27292D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a263a;
/* rgb */ color: rgb(42, 38, 58);
/* oklch */ color: oklch(28.2% 0.037 293.1);
Tailwind
colors: {
  custom: {
    50: '#646070',
    500: '#2a263a',
    950: '#000000',
  },
}
SCSS
$custom: #2a263a;
$custom-light: #646070;
$custom-dark: #000000;
JSON
{
  "hex": "#2a263a",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 58
  },
  "hsl": {
    "h": 252,
    "s": 20.833,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28228,
    "c": 0.03659,
    "h": 293.1
  },
  "luminance": 0.02184
}

Semantic roles & 50–950 ramp

primary
#2A263A
secondary
#666C50
accent
#BD6AAD
background
#F5F5F6
surface
#EAE9EC
border
#C6C5C7
text
#050407
muted
#79797A

Preview Lab

Preview with #2A263A

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

Preview Lab → · Contrast checker → · Palette generator →

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