#281747#281747

#281747 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.086 H 296.1°. Best body text is #FFFFFF at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#281747
RGBrgb(40, 23, 71)
HSLhsl(261, 51%, 18%)
HSVhsv(261, 68%, 28%)
CMYKcmyk(43.7%, 67.6%, 0%, 72.2%)
CIE-LABlab(12.73, 21.18, -27.13)
CIE-LCHlch(12.73, 34.42, 307.99°)
OKLaboklab(25.67% 0.0378 -0.0772)
OKLCHoklch(25.67% 0.086 296.1)
XYZxyz(2.3185, 1.5188, 6.1310)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281747 #364717
analogous
#171E47 #281747 #401747
triadic
#281747 #472817 #174728
tetradic
#281747 #47171E #364717 #174740
square
#281747 #47171E #364717 #174740
split-complementary
#281747 #474017 #1E4717
monochromatic
#0D0717 #0E0819 #281747 #422675 #5C35A3

Accessibility & contrast

On white

16.11
#281747 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#281747 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281747
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281747#FFFFFF#000000##FFFFFF
##2817471.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002149
Deuteranopia (green-blind)
#032046
Tritanopia (blue-blind)
#20222C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #281747;
/* rgb */ color: rgb(40, 23, 71);
/* oklch */ color: oklch(25.7% 0.086 296.1);
Tailwind
colors: {
  custom: {
    50: '#65557b',
    500: '#281747',
    950: '#000000',
  },
}
SCSS
$custom: #281747;
$custom-light: #65557b;
$custom-dark: #000000;
JSON
{
  "hex": "#281747",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 71
  },
  "hsl": {
    "h": 261.25,
    "s": 51.064,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25668,
    "c": 0.08598,
    "h": 296.1
  },
  "luminance": 0.01519
}

Semantic roles & 50–950 ramp

primary
#281747
secondary
#677E3C
accent
#DB4DA9
background
#F6F4F7
surface
#EBE8ED
border
#C6C4C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #281747

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

Preview Lab → · Contrast checker → · Palette generator →

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