#281052#281052

#281052 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.111 H 293.5°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#281052
RGBrgb(40, 16, 82)
HSLhsl(262, 67%, 19%)
HSVhsv(262, 80%, 32%)
CMYKcmyk(51.2%, 80.5%, 0%, 67.8%)
CIE-LABlab(12.16, 28.94, -35.63)
CIE-LCHlch(12.16, 45.90, 309.08°)
OKLaboklab(25.57% 0.0444 -0.1022)
OKLCHoklch(25.57% 0.111 293.5)
XYZxyz(2.5829, 1.4308, 8.1211)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281052 #3A5210
analogous
#101952 #281052 #491052
triadic
#281052 #522810 #105228
tetradic
#281052 #521019 #3A5210 #105249
square
#281052 #521019 #3A5210 #105249
split-complementary
#281052 #524910 #195210
monochromatic
#0C051A #0F061F #281052 #411A85 #5A24B8

Accessibility & contrast

On white

16.33
#281052 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#281052 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281052
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281052#FFFFFF#000000##FFFFFF
##2810521.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002154
Deuteranopia (green-blind)
#001F51
Tritanopia (blue-blind)
#1B2230
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #281052;
/* rgb */ color: rgb(40, 16, 82);
/* oklch */ color: oklch(25.6% 0.111 293.5);
Tailwind
colors: {
  custom: {
    50: '#675183',
    500: '#281052',
    950: '#000000',
  },
}
SCSS
$custom: #281052;
$custom-light: #675183;
$custom-dark: #000000;
JSON
{
  "hex": "#281052",
  "rgb": {
    "r": 40,
    "g": 16,
    "b": 82
  },
  "hsl": {
    "h": 261.818,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.25572,
    "c": 0.11141,
    "h": 293.5
  },
  "luminance": 0.01431
}

Semantic roles & 50–950 ramp

primary
#281052
secondary
#6B8C32
accent
#EA3EAB
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #281052

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

Preview Lab → · Contrast checker → · Palette generator →

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