#281C82#281C82

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

Color values

HEX#281C82
RGBrgb(40, 28, 130)
HSLhsl(247, 65%, 31%)
HSVhsv(247, 78%, 51%)
CMYKcmyk(69.2%, 78.5%, 0%, 49%)
CIE-LABlab(19.61, 37.75, -54.87)
CIE-LCHlch(19.61, 66.61, 304.53°)
OKLaboklab(32.35% 0.0219 -0.1585)
OKLCHoklch(32.35% 0.16 277.9)
XYZxyz(5.3183, 2.8929, 21.3929)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C82 #76821C
analogous
#1C4382 #281C82 #5B1C82
triadic
#281C82 #82281C #1C8228
tetradic
#281C82 #821C43 #76821C #1C825B
square
#281C82 #821C43 #76821C #1C825B
split-complementary
#281C82 #825B1C #43821C
monochromatic
#09061D #191150 #281C82 #3727B4 #5442D6

Accessibility & contrast

On white

13.30
#281C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#281C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C82
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C82#FFFFFF#000000##FFFFFF
##281C821.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281c82;
/* rgb */ color: rgb(40, 28, 130);
/* oklch */ color: oklch(32.4% 0.160 277.9);
Tailwind
colors: {
  custom: {
    50: '#705ba7',
    500: '#281c82',
    950: '#000000',
  },
}
SCSS
$custom: #281c82;
$custom-light: #705ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#281c82",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 247.059,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32352,
    "c": 0.16002,
    "h": 277.9
  },
  "luminance": 0.02893
}

Semantic roles & 50–950 ramp

primary
#281C82
secondary
#A8B544
accent
#E840D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281C82

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

Preview Lab → · Contrast checker → · Palette generator →

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