#282147#282147

#282147 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 27.7% C 0.068 H 289.6°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#282147
RGBrgb(40, 33, 71)
HSLhsl(251, 37%, 20%)
HSVhsv(251, 54%, 28%)
CMYKcmyk(43.7%, 53.5%, 0%, 72.2%)
CIE-LABlab(15.45, 14.22, -22.75)
CIE-LCHlch(15.45, 26.83, 302.00°)
OKLaboklab(27.69% 0.023 -0.0643)
OKLCHoklch(27.69% 0.068 289.6)
XYZxyz(2.5559, 1.9937, 6.2102)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282147 #404721
analogous
#212D47 #282147 #3B2147
triadic
#282147 #472821 #214728
tetradic
#282147 #47212D #404721 #21473B
square
#282147 #47212D #404721 #21473B
split-complementary
#282147 #473B21 #2D4721
monochromatic
#0C0A15 #100E1D #282147 #403471 #57489B

Accessibility & contrast

On white

15.01
#282147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#282147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282147
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282147#FFFFFF#000000##FFFFFF
##2821471.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132748
Deuteranopia (green-blind)
#132646
Tritanopia (blue-blind)
#202930
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #282147;
/* rgb */ color: rgb(40, 33, 71);
/* oklch */ color: oklch(27.7% 0.068 289.6);
Tailwind
colors: {
  custom: {
    50: '#645c7a',
    500: '#282147',
    950: '#000000',
  },
}
SCSS
$custom: #282147;
$custom-light: #645c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#282147",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 71
  },
  "hsl": {
    "h": 251.053,
    "s": 36.538,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27688,
    "c": 0.06832,
    "h": 289.6
  },
  "luminance": 0.01994
}

Semantic roles & 50–950 ramp

primary
#282147
secondary
#727B49
accent
#CD5BB8
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050409
muted
#7A797B

Preview Lab

Preview with #282147

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

Preview Lab → · Contrast checker → · Palette generator →

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