#281B67#281B67

#281B67 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.3% C 0.126 H 283.3°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#281B67
RGBrgb(40, 27, 103)
HSLhsl(250, 58%, 25%)
HSVhsv(250, 74%, 40%)
CMYKcmyk(61.2%, 73.8%, 0%, 59.6%)
CIE-LABlab(16.57, 29.28, -42.48)
CIE-LCHlch(16.57, 51.59, 304.58°)
OKLaboklab(29.35% 0.0289 -0.1223)
OKLCHoklch(29.35% 0.126 283.3)
XYZxyz(3.7144, 2.2140, 13.0610)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B67 #5A671B
analogous
#1B3467 #281B67 #4E1B67
triadic
#281B67 #67281B #1B6728
tetradic
#281B67 #671B34 #5A671B #1B674E
square
#281B67 #671B34 #5A671B #1B674E
split-complementary
#281B67 #674E1B #34671B
monochromatic
#090618 #150E37 #281B67 #3B2897 #4E34C8

Accessibility & contrast

On white

14.56
#281B67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281B67
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B67#FFFFFF#000000##FFFFFF
##281B671.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B69
Deuteranopia (green-blind)
#002666
Tritanopia (blue-blind)
#052F3E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #281b67;
/* rgb */ color: rgb(40, 27, 103);
/* oklch */ color: oklch(29.3% 0.126 283.3);
Tailwind
colors: {
  custom: {
    50: '#6a5993',
    500: '#281b67',
    950: '#000000',
  },
}
SCSS
$custom: #281b67;
$custom-light: #6a5993;
$custom-dark: #000000;
JSON
{
  "hex": "#281b67",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 103
  },
  "hsl": {
    "h": 250.263,
    "s": 58.462,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29346,
    "c": 0.12565,
    "h": 283.3
  },
  "luminance": 0.02214
}

Semantic roles & 50–950 ramp

primary
#281B67
secondary
#8D9C42
accent
#E246C7
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #281B67

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

Preview Lab → · Contrast checker → · Palette generator →

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