#2C283F#2C283F

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

Color values

HEX#2C283F
RGBrgb(44, 40, 63)
HSLhsl(250, 22%, 20%)
HSVhsv(250, 37%, 25%)
CMYKcmyk(30.2%, 36.5%, 0%, 75.3%)
CIE-LABlab(17.52, 8.00, -13.95)
CIE-LCHlch(17.52, 16.08, 299.81°)
OKLaboklab(29.2% 0.0153 -0.0387)
OKLCHoklch(29.2% 0.042 291.6)
XYZxyz(2.6945, 2.4119, 5.0252)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C283F #3B3F28
analogous
#282F3F #2C283F #37283F
triadic
#2C283F #3F2C28 #283F2C
tetradic
#2C283F #3F282F #3B3F28 #283F37
square
#2C283F #3F282F #3B3F28 #283F37
split-complementary
#2C283F #3F3728 #2F3F28
monochromatic
#0D0C13 #12101A #2C283F #464064 #60588A

Accessibility & contrast

On white

14.17
#2C283F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C283F
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C283F#FFFFFF#000000##FFFFFF
##2C283F1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c283f;
/* rgb */ color: rgb(44, 40, 63);
/* oklch */ color: oklch(29.2% 0.042 291.6);
Tailwind
colors: {
  custom: {
    50: '#656174',
    500: '#2c283f',
    950: '#000000',
  },
}
SCSS
$custom: #2c283f;
$custom-light: #656174;
$custom-dark: #000000;
JSON
{
  "hex": "#2c283f",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 63
  },
  "hsl": {
    "h": 250.435,
    "s": 22.33,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29201,
    "c": 0.04161,
    "h": 291.6
  },
  "luminance": 0.02412
}

Semantic roles & 50–950 ramp

primary
#2C283F
secondary
#6B7152
accent
#BF69B0
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060508
muted
#7A797B

Preview Lab

Preview with #2C283F

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

Preview Lab → · Contrast checker → · Palette generator →

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