#281B64#281B64

#281B64 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.0% C 0.122 H 284.0°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#281B64
RGBrgb(40, 27, 100)
HSLhsl(251, 57%, 25%)
HSVhsv(251, 73%, 39%)
CMYKcmyk(60%, 73%, 0%, 60.8%)
CIE-LABlab(16.28, 28.26, -40.98)
CIE-LCHlch(16.28, 49.78, 304.59°)
OKLaboklab(29.05% 0.0294 -0.1179)
OKLCHoklch(29.05% 0.122 284)
XYZxyz(3.5666, 2.1549, 12.2821)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B64 #57641B
analogous
#1B3364 #281B64 #4D1B64
triadic
#281B64 #64281B #1B6428
tetradic
#281B64 #641B33 #57641B #1B644D
square
#281B64 #641B33 #57641B #1B644D
split-complementary
#281B64 #644D1B #33641B
monochromatic
#0A0718 #150E34 #281B64 #3B2894 #4F35C4

Accessibility & contrast

On white

14.68
#281B64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281B64
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B64#FFFFFF#000000##FFFFFF
##281B641.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B66
Deuteranopia (green-blind)
#002663
Tritanopia (blue-blind)
#0A2E3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281b64;
/* rgb */ color: rgb(40, 27, 100);
/* oklch */ color: oklch(29.0% 0.122 284.0);
Tailwind
colors: {
  custom: {
    50: '#695891',
    500: '#281b64',
    950: '#000000',
  },
}
SCSS
$custom: #281b64;
$custom-light: #695891;
$custom-dark: #000000;
JSON
{
  "hex": "#281b64",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 100
  },
  "hsl": {
    "h": 250.685,
    "s": 57.48,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29047,
    "c": 0.12152,
    "h": 284
  },
  "luminance": 0.02155
}

Semantic roles & 50–950 ramp

primary
#281B64
secondary
#8A9941
accent
#E147C5
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #281B64

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

Preview Lab → · Contrast checker → · Palette generator →

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