#2A243E#2A243E

#2A243E is a dark, muted violet. Relative luminance 0.021; OKLCH L 28.0% C 0.048 H 293.7°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#2A243E
RGBrgb(42, 36, 62)
HSLhsl(254, 27%, 19%)
HSVhsv(254, 42%, 24%)
CMYKcmyk(32.3%, 41.9%, 0%, 75.7%)
CIE-LABlab(16.01, 9.81, -15.62)
CIE-LCHlch(16.01, 18.45, 302.15°)
OKLaboklab(27.98% 0.0191 -0.0435)
OKLCHoklch(27.98% 0.048 293.7)
XYZxyz(2.4550, 2.1018, 4.8328)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A243E #383E24
analogous
#242B3E #2A243E #37243E
triadic
#2A243E #3E2A24 #243E2A
tetradic
#2A243E #3E242B #383E24 #243E37
square
#2A243E #3E242B #383E24 #243E37
split-complementary
#2A243E #3E3724 #2B3E24
monochromatic
#0D0B13 #100E17 #2A243E #443A65 #5E518B

Accessibility & contrast

On white

14.78
#2A243E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2A243E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A243E
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A243E#FFFFFF#000000##FFFFFF
##2A243E1.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D283F
Deuteranopia (green-blind)
#1E273D
Tritanopia (blue-blind)
#26292E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a243e;
/* rgb */ color: rgb(42, 36, 62);
/* oklch */ color: oklch(28.0% 0.048 293.7);
Tailwind
colors: {
  custom: {
    50: '#645e73',
    500: '#2a243e',
    950: '#000000',
  },
}
SCSS
$custom: #2a243e;
$custom-light: #645e73;
$custom-dark: #000000;
JSON
{
  "hex": "#2a243e",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 62
  },
  "hsl": {
    "h": 253.846,
    "s": 26.531,
    "l": 19.216
  },
  "oklch": {
    "l": 0.27982,
    "c": 0.04752,
    "h": 293.7
  },
  "luminance": 0.02102
}

Semantic roles & 50–950 ramp

primary
#2A243E
secondary
#68714D
accent
#C365AD
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050408
muted
#7A797B

Preview Lab

Preview with #2A243E

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

Preview Lab → · Contrast checker → · Palette generator →

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