#281B66#281B66

#281B66 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.2% C 0.124 H 283.5°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#281B66
RGBrgb(40, 27, 102)
HSLhsl(250, 58%, 25%)
HSVhsv(250, 74%, 40%)
CMYKcmyk(60.8%, 73.5%, 0%, 60%)
CIE-LABlab(16.47, 28.94, -41.98)
CIE-LCHlch(16.47, 50.99, 304.58°)
OKLaboklab(29.25% 0.0291 -0.1208)
OKLCHoklch(29.25% 0.124 283.5)
XYZxyz(3.6645, 2.1941, 12.7982)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B66 #59661B
analogous
#1B3366 #281B66 #4D1B66
triadic
#281B66 #66281B #1B6628
tetradic
#281B66 #661B33 #59661B #1B664D
square
#281B66 #661B33 #59661B #1B664D
split-complementary
#281B66 #664D1B #33661B
monochromatic
#090618 #150E36 #281B66 #3B2896 #4E35C7

Accessibility & contrast

On white

14.60
#281B66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281B66
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B66#FFFFFF#000000##FFFFFF
##281B661.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B68
Deuteranopia (green-blind)
#002665
Tritanopia (blue-blind)
#072F3E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #281b66;
/* rgb */ color: rgb(40, 27, 102);
/* oklch */ color: oklch(29.2% 0.124 283.5);
Tailwind
colors: {
  custom: {
    50: '#6a5892',
    500: '#281b66',
    950: '#000000',
  },
}
SCSS
$custom: #281b66;
$custom-light: #6a5892;
$custom-dark: #000000;
JSON
{
  "hex": "#281b66",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 102
  },
  "hsl": {
    "h": 250.4,
    "s": 58.14,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29246,
    "c": 0.12427,
    "h": 283.5
  },
  "luminance": 0.02194
}

Semantic roles & 50–950 ramp

primary
#281B66
secondary
#8C9B41
accent
#E146C7
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #281B66

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

Preview Lab → · Contrast checker → · Palette generator →

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