#2D283A#2D283A

#2D283A is a dark, muted violet. Relative luminance 0.024; OKLCH L 29.0% C 0.033 H 297.0°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#2D283A
RGBrgb(45, 40, 58)
HSLhsl(257, 18%, 19%)
HSVhsv(257, 31%, 23%)
CMYKcmyk(22.4%, 31%, 0%, 77.3%)
CIE-LABlab(17.37, 6.90, -10.70)
CIE-LCHlch(17.37, 12.73, 302.81°)
OKLaboklab(29.03% 0.015 -0.0294)
OKLCHoklch(29.03% 0.033 297)
XYZxyz(2.6045, 2.3809, 4.3245)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D283A #353A28
analogous
#282C3A #2D283A #36283A
triadic
#2D283A #3A2D28 #283A2D
tetradic
#2D283A #3A282C #353A28 #283A36
square
#2D283A #3A282C #353A28 #283A36
split-complementary
#2D283A #3A3628 #2C3A28
monochromatic
#0E0C12 #110F16 #2D283A #49415E #655A82

Accessibility & contrast

On white

14.23
#2D283A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2D283A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D283A
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D283A#FFFFFF#000000##FFFFFF
##2D283A1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242B3B
Deuteranopia (green-blind)
#252A39
Tritanopia (blue-blind)
#2B2B2E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d283a;
/* rgb */ color: rgb(45, 40, 58);
/* oklch */ color: oklch(29.0% 0.033 297.0);
Tailwind
colors: {
  custom: {
    50: '#666170',
    500: '#2d283a',
    950: '#000000',
  },
}
SCSS
$custom: #2d283a;
$custom-light: #666170;
$custom-dark: #000000;
JSON
{
  "hex": "#2d283a",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 58
  },
  "hsl": {
    "h": 256.667,
    "s": 18.367,
    "l": 19.216
  },
  "oklch": {
    "l": 0.29034,
    "c": 0.033,
    "h": 297
  },
  "luminance": 0.02381
}

Semantic roles & 50–950 ramp

primary
#2D283A
secondary
#646B53
accent
#BB6DA5
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060507
muted
#7A797A

Preview Lab

Preview with #2D283A

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

Preview Lab → · Contrast checker → · Palette generator →

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