#281C4E#281C4E

#281C4E is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.088 H 290.4°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#281C4E
RGBrgb(40, 28, 78)
HSLhsl(254, 47%, 21%)
HSVhsv(254, 64%, 31%)
CMYKcmyk(48.7%, 64.1%, 0%, 69.4%)
CIE-LABlab(14.58, 20.10, -28.97)
CIE-LCHlch(14.58, 35.26, 304.76°)
OKLaboklab(27.2% 0.0307 -0.0826)
OKLCHoklch(27.2% 0.088 290.4)
XYZxyz(2.6651, 1.8316, 7.4194)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C4E #424E1C
analogous
#1C294E #281C4E #411C4E
triadic
#281C4E #4E281C #1C4E28
tetradic
#281C4E #4E1C29 #424E1C #1C4E41
square
#281C4E #4E1C29 #424E1C #1C4E41
split-complementary
#281C4E #4E411C #294E1C
monochromatic
#0C0817 #110C21 #281C4E #3F2C7B #563CA8

Accessibility & contrast

On white

15.37
#281C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#281C4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C4E
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C4E#FFFFFF#000000##FFFFFF
##281C4E1.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002650
Deuteranopia (green-blind)
#01244D
Tritanopia (blue-blind)
#1D2731
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #281c4e;
/* rgb */ color: rgb(40, 28, 78);
/* oklch */ color: oklch(27.2% 0.088 290.4);
Tailwind
colors: {
  custom: {
    50: '#655880',
    500: '#281c4e',
    950: '#000000',
  },
}
SCSS
$custom: #281c4e;
$custom-light: #655880;
$custom-dark: #000000;
JSON
{
  "hex": "#281c4e",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 78
  },
  "hsl": {
    "h": 254.4,
    "s": 47.17,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27202,
    "c": 0.08812,
    "h": 290.4
  },
  "luminance": 0.01832
}

Semantic roles & 50–950 ramp

primary
#281C4E
secondary
#748442
accent
#D751B7
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #281C4E

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

Preview Lab → · Contrast checker → · Palette generator →

#281C4E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva