#281B68#281B68

#281B68 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.127 H 283.0°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#281B68
RGBrgb(40, 27, 104)
HSLhsl(250, 59%, 26%)
HSVhsv(250, 74%, 41%)
CMYKcmyk(61.5%, 74%, 0%, 59.2%)
CIE-LABlab(16.67, 29.62, -42.97)
CIE-LCHlch(16.67, 52.19, 304.58°)
OKLaboklab(29.45% 0.0287 -0.1237)
OKLCHoklch(29.45% 0.127 283)
XYZxyz(3.7649, 2.2342, 13.3269)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B68 #5B681B
analogous
#1B3468 #281B68 #4E1B68
triadic
#281B68 #68281B #1B6828
tetradic
#281B68 #681B34 #5B681B #1B684E
square
#281B68 #681B34 #5B681B #1B684E
split-complementary
#281B68 #684E1B #34681B
monochromatic
#090618 #150E37 #281B68 #3B2899 #4D34C9

Accessibility & contrast

On white

14.51
#281B68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#281B68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B68
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B68#FFFFFF#000000##FFFFFF
##281B681.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6A
Deuteranopia (green-blind)
#002767
Tritanopia (blue-blind)
#032F3F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #281b68;
/* rgb */ color: rgb(40, 27, 104);
/* oklch */ color: oklch(29.4% 0.127 283.0);
Tailwind
colors: {
  custom: {
    50: '#6a5994',
    500: '#281b68',
    950: '#000000',
  },
}
SCSS
$custom: #281b68;
$custom-light: #6a5994;
$custom-dark: #000000;
JSON
{
  "hex": "#281b68",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 104
  },
  "hsl": {
    "h": 250.13,
    "s": 58.779,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29447,
    "c": 0.12702,
    "h": 283
  },
  "luminance": 0.02234
}

Semantic roles & 50–950 ramp

primary
#281B68
secondary
#8E9D42
accent
#E246C8
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #281B68

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

Preview Lab → · Contrast checker → · Palette generator →

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