#2D283F#2D283F

#2D283F is a dark, muted violet. Relative luminance 0.024; OKLCH L 29.3% C 0.042 H 293.6°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#2D283F
RGBrgb(45, 40, 63)
HSLhsl(253, 22%, 20%)
HSVhsv(253, 37%, 25%)
CMYKcmyk(28.6%, 36.5%, 0%, 75.3%)
CIE-LABlab(17.62, 8.37, -13.79)
CIE-LCHlch(17.62, 16.13, 301.25°)
OKLaboklab(29.31% 0.0167 -0.0382)
OKLCHoklch(29.31% 0.042 293.6)
XYZxyz(2.7380, 2.4343, 5.0273)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D283F #3A3F28
analogous
#282F3F #2D283F #38283F
triadic
#2D283F #3F2D28 #283F2D
tetradic
#2D283F #3F282F #3A3F28 #283F38
square
#2D283F #3F282F #3A3F28 #283F38
split-complementary
#2D283F #3F3828 #2F3F28
monochromatic
#0D0C13 #12101A #2D283F #484064 #62588A

Accessibility & contrast

On white

14.12
#2D283F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2D283F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D283F
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D283F#FFFFFF#000000##FFFFFF
##2D283F1.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222B40
Deuteranopia (green-blind)
#232B3E
Tritanopia (blue-blind)
#292C30
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2d283f;
/* rgb */ color: rgb(45, 40, 63);
/* oklch */ color: oklch(29.3% 0.042 293.6);
Tailwind
colors: {
  custom: {
    50: '#666174',
    500: '#2d283f',
    950: '#000000',
  },
}
SCSS
$custom: #2d283f;
$custom-light: #666174;
$custom-dark: #000000;
JSON
{
  "hex": "#2d283f",
  "rgb": {
    "r": 45,
    "g": 40,
    "b": 63
  },
  "hsl": {
    "h": 253.043,
    "s": 22.33,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29306,
    "c": 0.04168,
    "h": 293.6
  },
  "luminance": 0.02434
}

Semantic roles & 50–950 ramp

primary
#2D283F
secondary
#6A7152
accent
#BF69AC
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060508
muted
#7A797B

Preview Lab

Preview with #2D283F

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

Preview Lab → · Contrast checker → · Palette generator →

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