#2A243F#2A243F

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

Color values

HEX#2A243F
RGBrgb(42, 36, 63)
HSLhsl(253, 27%, 19%)
HSVhsv(253, 43%, 25%)
CMYKcmyk(33.3%, 42.9%, 0%, 75.3%)
CIE-LABlab(16.07, 10.13, -16.23)
CIE-LCHlch(16.07, 19.13, 301.97°)
OKLaboklab(28.04% 0.0194 -0.0453)
OKLCHoklch(28.04% 0.049 293.2)
XYZxyz(2.4827, 2.1128, 4.9787)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A243F #393F24
analogous
#242C3F #2A243F #38243F
triadic
#2A243F #3F2A24 #243F2A
tetradic
#2A243F #3F242C #393F24 #243F38
square
#2A243F #3F242C #393F24 #243F38
split-complementary
#2A243F #3F3824 #2C3F24
monochromatic
#0D0B13 #100E18 #2A243F #443A66 #5E518D

Accessibility & contrast

On white

14.76
#2A243F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A243F
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A243F#FFFFFF#000000##FFFFFF
##2A243F1.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2840
Deuteranopia (green-blind)
#1D273E
Tritanopia (blue-blind)
#25292E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a243f;
/* rgb */ color: rgb(42, 36, 63);
/* oklch */ color: oklch(28.0% 0.049 293.2);
Tailwind
colors: {
  custom: {
    50: '#645e74',
    500: '#2a243f',
    950: '#000000',
  },
}
SCSS
$custom: #2a243f;
$custom-light: #645e74;
$custom-dark: #000000;
JSON
{
  "hex": "#2a243f",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 63
  },
  "hsl": {
    "h": 253.333,
    "s": 27.273,
    "l": 19.412
  },
  "oklch": {
    "l": 0.28043,
    "c": 0.04924,
    "h": 293.2
  },
  "luminance": 0.02113
}

Semantic roles & 50–950 ramp

primary
#2A243F
secondary
#6A724D
accent
#C464AE
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050408
muted
#7A797B

Preview Lab

Preview with #2A243F

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

Preview Lab → · Contrast checker → · Palette generator →

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