#282140#282140

#282140 is a dark, muted violet. Relative luminance 0.019; OKLCH L 27.2% C 0.057 H 292.6°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#282140
RGBrgb(40, 33, 64)
HSLhsl(254, 32%, 19%)
HSVhsv(254, 48%, 25%)
CMYKcmyk(37.5%, 48.4%, 0%, 74.9%)
CIE-LABlab(15.00, 11.91, -18.62)
CIE-LCHlch(15.00, 22.10, 302.61°)
OKLaboklab(27.2% 0.0218 -0.0523)
OKLCHoklch(27.2% 0.057 292.6)
XYZxyz(2.3441, 1.9089, 5.0945)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282140 #394021
analogous
#212A40 #282140 #382140
triadic
#282140 #402821 #214028
tetradic
#282140 #40212A #394021 #214038
square
#282140 #40212A #394021 #214038
split-complementary
#282140 #403821 #2A4021
monochromatic
#0D0A14 #0F0C18 #282140 #413668 #5A4B91

Accessibility & contrast

On white

15.20
#282140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#282140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282140
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282140#FFFFFF#000000##FFFFFF
##2821401.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172641
Deuteranopia (green-blind)
#18253F
Tritanopia (blue-blind)
#22272D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #282140;
/* rgb */ color: rgb(40, 33, 64);
/* oklch */ color: oklch(27.2% 0.057 292.6);
Tailwind
colors: {
  custom: {
    50: '#635c75',
    500: '#282140',
    950: '#000000',
  },
}
SCSS
$custom: #282140;
$custom-light: #635c75;
$custom-dark: #000000;
JSON
{
  "hex": "#282140",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 64
  },
  "hsl": {
    "h": 253.548,
    "s": 31.959,
    "l": 19.02
  },
  "oklch": {
    "l": 0.272,
    "c": 0.05661,
    "h": 292.6
  },
  "luminance": 0.01909
}

Semantic roles & 50–950 ramp

primary
#282140
secondary
#6A7449
accent
#C860B1
background
#F5F5F7
surface
#EAE9ED
border
#C6C5C8
text
#050408
muted
#79797B

Preview Lab

Preview with #282140

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

Preview Lab → · Contrast checker → · Palette generator →

#282140 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva