#281B93#281B93

#281B93 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.1% C 0.182 H 275.6°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#281B93
RGBrgb(40, 27, 147)
HSLhsl(247, 69%, 34%)
HSVhsv(247, 82%, 58%)
CMYKcmyk(72.8%, 81.6%, 0%, 42.4%)
CIE-LABlab(21.36, 43.76, -62.61)
CIE-LCHlch(21.36, 76.39, 304.95°)
OKLaboklab(34.15% 0.0178 -0.181)
OKLCHoklch(34.15% 0.182 275.6)
XYZxyz(6.5317, 3.3409, 27.8987)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B93 #86931B
analogous
#1B4A93 #281B93 #641B93
triadic
#281B93 #93281B #1B9328
tetradic
#281B93 #931B4A #86931B #1B9364
square
#281B93 #931B4A #86931B #1B9364
split-complementary
#281B93 #93641B #4A931B
monochromatic
#0C082C #1A125F #281B93 #3624C7 #5B4BDE

Accessibility & contrast

On white

12.59
#281B93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#281B93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B93
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B93#FFFFFF#000000##FFFFFF
##281B931.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003896
Deuteranopia (green-blind)
#002E91
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #281b93;
/* rgb */ color: rgb(40, 27, 147);
/* oklch */ color: oklch(34.1% 0.182 275.6);
Tailwind
colors: {
  custom: {
    50: '#745bb4',
    500: '#281b93',
    950: '#000000',
  },
}
SCSS
$custom: #281b93;
$custom-light: #745bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#281b93",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 147
  },
  "hsl": {
    "h": 246.5,
    "s": 68.966,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34146,
    "c": 0.1819,
    "h": 275.6
  },
  "luminance": 0.03342
}

Semantic roles & 50–950 ramp

primary
#281B93
secondary
#B3C04A
accent
#EC3CD9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281B93

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

Preview Lab → · Contrast checker → · Palette generator →

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