#282144#282144

#282144 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 27.5% C 0.063 H 290.8°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#282144
RGBrgb(40, 33, 68)
HSLhsl(252, 35%, 20%)
HSVhsv(252, 51%, 27%)
CMYKcmyk(41.2%, 51.5%, 0%, 73.3%)
CIE-LABlab(15.26, 13.22, -21.00)
CIE-LCHlch(15.26, 24.81, 302.19°)
OKLaboklab(27.47% 0.0225 -0.0592)
OKLCHoklch(27.47% 0.063 290.8)
XYZxyz(2.4620, 1.9561, 5.7156)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282144 #3D4421
analogous
#212C44 #282144 #3A2144
triadic
#282144 #442821 #214428
tetradic
#282144 #44212C #3D4421 #21443A
square
#282144 #44212C #3D4421 #21443A
split-complementary
#282144 #443A21 #2C4421
monochromatic
#0C0A15 #100D1B #282144 #40356D #584996

Accessibility & contrast

On white

15.09
#282144 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#282144 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282144
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282144#FFFFFF#000000##FFFFFF
##2821441.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152745
Deuteranopia (green-blind)
#152543
Tritanopia (blue-blind)
#21282F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #282144;
/* rgb */ color: rgb(40, 33, 68);
/* oklch */ color: oklch(27.5% 0.063 290.8);
Tailwind
colors: {
  custom: {
    50: '#635c78',
    500: '#282144',
    950: '#000000',
  },
}
SCSS
$custom: #282144;
$custom-light: #635c78;
$custom-dark: #000000;
JSON
{
  "hex": "#282144",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 68
  },
  "hsl": {
    "h": 252,
    "s": 34.653,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27474,
    "c": 0.06334,
    "h": 290.8
  },
  "luminance": 0.01956
}

Semantic roles & 50–950 ramp

primary
#282144
secondary
#6E7849
accent
#CB5DB5
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050409
muted
#7A797B

Preview Lab

Preview with #282144

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

Preview Lab → · Contrast checker → · Palette generator →

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