#281C63#281C63

#281C63 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.1% C 0.119 H 283.9°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#281C63
RGBrgb(40, 28, 99)
HSLhsl(250, 56%, 25%)
HSVhsv(250, 72%, 39%)
CMYKcmyk(59.6%, 71.7%, 0%, 61.2%)
CIE-LABlab(16.42, 27.28, -40.10)
CIE-LCHlch(16.42, 48.50, 304.23°)
OKLaboklab(29.12% 0.0286 -0.1153)
OKLCHoklch(29.12% 0.119 283.9)
XYZxyz(3.5418, 2.1823, 12.0366)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C63 #57631C
analogous
#1C3363 #281C63 #4C1C63
triadic
#281C63 #63281C #1C6328
tetradic
#281C63 #631C33 #57631C #1C634C
square
#281C63 #631C33 #57631C #1C634C
split-complementary
#281C63 #634C1C #33631C
monochromatic
#0A0718 #150F33 #281C63 #3B2993 #4F37C2

Accessibility & contrast

On white

14.62
#281C63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#281C63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C63
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C63#FFFFFF#000000##FFFFFF
##281C631.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B65
Deuteranopia (green-blind)
#002662
Tritanopia (blue-blind)
#0B2E3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #281c63;
/* rgb */ color: rgb(40, 28, 99);
/* oklch */ color: oklch(29.1% 0.119 283.9);
Tailwind
colors: {
  custom: {
    50: '#695990',
    500: '#281c63',
    950: '#000000',
  },
}
SCSS
$custom: #281c63;
$custom-light: #695990;
$custom-dark: #000000;
JSON
{
  "hex": "#281c63",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 99
  },
  "hsl": {
    "h": 250.141,
    "s": 55.906,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29115,
    "c": 0.11881,
    "h": 283.9
  },
  "luminance": 0.02182
}

Semantic roles & 50–950 ramp

primary
#281C63
secondary
#8A9843
accent
#DF49C6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #281C63

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

Preview Lab → · Contrast checker → · Palette generator →

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