#281C3E#281C3E

#281C3E is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.0% C 0.063 H 298.2°. Best body text is #FFFFFF at 15.84:1 contrast (WCAG AA passes).

Color values

HEX#281C3E
RGBrgb(40, 28, 62)
HSLhsl(261, 38%, 18%)
HSVhsv(261, 55%, 24%)
CMYKcmyk(35.5%, 54.8%, 0%, 75.7%)
CIE-LABlab(13.41, 14.86, -19.74)
CIE-LCHlch(13.41, 24.70, 306.97°)
OKLaboklab(25.96% 0.0298 -0.0555)
OKLCHoklch(25.96% 0.063 298.2)
XYZxyz(2.1596, 1.6294, 4.7572)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C3E #323E1C
analogous
#1C213E #281C3E #391C3E
triadic
#281C3E #3E281C #1C3E28
tetradic
#281C3E #3E1C21 #323E1C #1C3E39
square
#281C3E #3E1C21 #323E1C #1C3E39
split-complementary
#281C3E #3E391C #213E1C
monochromatic
#0E0A15 #0E0A15 #281C3E #432F68 #5E4292

Accessibility & contrast

On white

15.84
#281C3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#281C3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C3E
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C3E#FFFFFF#000000##FFFFFF
##281C3E1.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11223F
Deuteranopia (green-blind)
#14223D
Tritanopia (blue-blind)
#23222A
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #281c3e;
/* rgb */ color: rgb(40, 28, 62);
/* oklch */ color: oklch(26.0% 0.063 298.2);
Tailwind
colors: {
  custom: {
    50: '#635873',
    500: '#281c3e',
    950: '#000000',
  },
}
SCSS
$custom: #281c3e;
$custom-light: #635873;
$custom-dark: #000000;
JSON
{
  "hex": "#281c3e",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 62
  },
  "hsl": {
    "h": 261.176,
    "s": 37.778,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25959,
    "c": 0.06299,
    "h": 298.2
  },
  "luminance": 0.01629
}

Semantic roles & 50–950 ramp

primary
#281C3E
secondary
#627343
accent
#CE5AA5
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050308
muted
#7A787B

Preview Lab

Preview with #281C3E

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

Preview Lab → · Contrast checker → · Palette generator →

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