#281B63#281B63

#281B63 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.120 H 284.3°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#281B63
RGBrgb(40, 27, 99)
HSLhsl(251, 57%, 25%)
HSVhsv(251, 73%, 39%)
CMYKcmyk(59.6%, 72.7%, 0%, 61.2%)
CIE-LABlab(16.18, 27.92, -40.48)
CIE-LCHlch(16.18, 49.17, 304.59°)
OKLaboklab(28.95% 0.0296 -0.1164)
OKLCHoklch(28.95% 0.12 284.3)
XYZxyz(3.5184, 2.1356, 12.0288)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B63 #56631B
analogous
#1B3263 #281B63 #4C1B63
triadic
#281B63 #63281B #1B6328
tetradic
#281B63 #631B32 #56631B #1B634C
square
#281B63 #631B32 #56631B #1B634C
split-complementary
#281B63 #634C1B #32631B
monochromatic
#0A0718 #150E33 #281B63 #3B2893 #4F35C3

Accessibility & contrast

On white

14.71
#281B63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#281B63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B63
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B63#FFFFFF#000000##FFFFFF
##281B631.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A65
Deuteranopia (green-blind)
#002662
Tritanopia (blue-blind)
#0B2E3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281b63;
/* rgb */ color: rgb(40, 27, 99);
/* oklch */ color: oklch(28.9% 0.120 284.3);
Tailwind
colors: {
  custom: {
    50: '#695890',
    500: '#281b63',
    950: '#000000',
  },
}
SCSS
$custom: #281b63;
$custom-light: #695890;
$custom-dark: #000000;
JSON
{
  "hex": "#281b63",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 99
  },
  "hsl": {
    "h": 250.833,
    "s": 57.143,
    "l": 24.706
  },
  "oklch": {
    "l": 0.28948,
    "c": 0.12014,
    "h": 284.3
  },
  "luminance": 0.02136
}

Semantic roles & 50–950 ramp

primary
#281B63
secondary
#899841
accent
#E047C5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #281B63

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

Preview Lab → · Contrast checker → · Palette generator →

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