#282145#282145

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

Color values

HEX#282145
RGBrgb(40, 33, 69)
HSLhsl(252, 35%, 20%)
HSVhsv(252, 52%, 27%)
CMYKcmyk(42%, 52.2%, 0%, 72.9%)
CIE-LABlab(15.32, 13.55, -21.59)
CIE-LCHlch(15.32, 25.49, 302.12°)
OKLaboklab(27.54% 0.0227 -0.0609)
OKLCHoklch(27.54% 0.065 290.4)
XYZxyz(2.4928, 1.9684, 5.8777)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282145 #3E4521
analogous
#212C45 #282145 #3A2145
triadic
#282145 #452821 #214528
tetradic
#282145 #45212C #3E4521 #21453A
square
#282145 #45212C #3E4521 #21453A
split-complementary
#282145 #453A21 #2C4521
monochromatic
#0C0A15 #100D1C #282145 #40356E #584998

Accessibility & contrast

On white

15.07
#282145 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #282145
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282145#FFFFFF#000000##FFFFFF
##2821451.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #282145;
/* rgb */ color: rgb(40, 33, 69);
/* oklch */ color: oklch(27.5% 0.065 290.4);
Tailwind
colors: {
  custom: {
    50: '#645c79',
    500: '#282145',
    950: '#000000',
  },
}
SCSS
$custom: #282145;
$custom-light: #645c79;
$custom-dark: #000000;
JSON
{
  "hex": "#282145",
  "rgb": {
    "r": 40,
    "g": 33,
    "b": 69
  },
  "hsl": {
    "h": 251.667,
    "s": 35.294,
    "l": 20
  },
  "oklch": {
    "l": 0.27544,
    "c": 0.065,
    "h": 290.4
  },
  "luminance": 0.01969
}

Semantic roles & 50–950 ramp

primary
#282145
secondary
#707949
accent
#CB5CB6
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050409
muted
#7A797B

Preview Lab

Preview with #282145

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

Preview Lab → · Contrast checker → · Palette generator →

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