#281B83#281B83

#281B83 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.162 H 277.9°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#281B83
RGBrgb(40, 27, 131)
HSLhsl(248, 66%, 31%)
HSVhsv(248, 79%, 51%)
CMYKcmyk(69.5%, 79.4%, 0%, 48.6%)
CIE-LABlab(19.53, 38.63, -55.64)
CIE-LCHlch(19.53, 67.73, 304.77°)
OKLaboklab(32.33% 0.0222 -0.1607)
OKLCHoklch(32.33% 0.162 277.9)
XYZxyz(5.3624, 2.8732, 21.7403)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B83 #76831B
analogous
#1B4283 #281B83 #5C1B83
triadic
#281B83 #83281B #1B8328
tetradic
#281B83 #831B42 #76831B #1B835C
square
#281B83 #831B42 #76831B #1B835C
split-complementary
#281B83 #835C1B #42831B
monochromatic
#09061E #191150 #281B83 #3725B6 #5441D8

Accessibility & contrast

On white

13.34
#281B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#281B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B83
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B83#FFFFFF#000000##FFFFFF
##281B831.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003386
Deuteranopia (green-blind)
#002B81
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #281b83;
/* rgb */ color: rgb(40, 27, 131);
/* oklch */ color: oklch(32.3% 0.162 277.9);
Tailwind
colors: {
  custom: {
    50: '#705aa8',
    500: '#281b83',
    950: '#000000',
  },
}
SCSS
$custom: #281b83;
$custom-light: #705aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#281b83",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 131
  },
  "hsl": {
    "h": 247.5,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32328,
    "c": 0.16226,
    "h": 277.9
  },
  "luminance": 0.02874
}

Semantic roles & 50–950 ramp

primary
#281B83
secondary
#A8B643
accent
#E93FD4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281B83

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

Preview Lab → · Contrast checker → · Palette generator →

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