#2A233D#2A233D

#2A233D is a dark, muted violet. Relative luminance 0.020; OKLCH L 27.7% C 0.048 H 295.5°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#2A233D
RGBrgb(42, 35, 61)
HSLhsl(256, 27%, 19%)
HSVhsv(256, 43%, 24%)
CMYKcmyk(31.1%, 42.6%, 0%, 76.1%)
CIE-LABlab(15.65, 10.22, -15.49)
CIE-LCHlch(15.65, 18.56, 303.43°)
OKLaboklab(27.69% 0.0206 -0.0431)
OKLCHoklch(27.69% 0.048 295.5)
XYZxyz(2.3980, 2.0312, 4.6797)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A233D #363D23
analogous
#23293D #2A233D #37233D
triadic
#2A233D #3D2A23 #233D2A
tetradic
#2A233D #3D2329 #363D23 #233D37
square
#2A233D #3D2329 #363D23 #233D37
split-complementary
#2A233D #3D3723 #293D23
monochromatic
#0D0B13 #0F0D16 #2A233D #453964 #60508B

Accessibility & contrast

On white

14.93
#2A233D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2A233D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A233D
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A233D#FFFFFF#000000##FFFFFF
##2A233D1.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C273E
Deuteranopia (green-blind)
#1D273C
Tritanopia (blue-blind)
#26272D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a233d;
/* rgb */ color: rgb(42, 35, 61);
/* oklch */ color: oklch(27.7% 0.048 295.5);
Tailwind
colors: {
  custom: {
    50: '#645d72',
    500: '#2a233d',
    950: '#000000',
  },
}
SCSS
$custom: #2a233d;
$custom-light: #645d72;
$custom-dark: #000000;
JSON
{
  "hex": "#2a233d",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 61
  },
  "hsl": {
    "h": 256.154,
    "s": 27.083,
    "l": 18.824
  },
  "oklch": {
    "l": 0.27687,
    "c": 0.04778,
    "h": 295.5
  },
  "luminance": 0.02031
}

Semantic roles & 50–950 ramp

primary
#2A233D
secondary
#66704C
accent
#C364AA
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#050408
muted
#7A797B

Preview Lab

Preview with #2A233D

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

Preview Lab → · Contrast checker → · Palette generator →

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