#281C84#281C84

#281C84 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.163 H 277.6°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#281C84
RGBrgb(40, 28, 132)
HSLhsl(247, 65%, 31%)
HSVhsv(247, 79%, 52%)
CMYKcmyk(69.7%, 78.8%, 0%, 48.2%)
CIE-LABlab(19.83, 38.41, -55.77)
CIE-LCHlch(19.83, 67.72, 304.55°)
OKLaboklab(32.57% 0.0214 -0.1611)
OKLCHoklch(32.57% 0.163 277.6)
XYZxyz(5.4538, 2.9471, 22.1068)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C84 #78841C
analogous
#1C4484 #281C84 #5C1C84
triadic
#281C84 #84281C #1C8428
tetradic
#281C84 #841C44 #78841C #1C845C
square
#281C84 #841C44 #78841C #1C845C
split-complementary
#281C84 #845C1C #44841C
monochromatic
#09071F #191152 #281C84 #3727B6 #5443D7

Accessibility & contrast

On white

13.21
#281C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#281C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C84
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C84#FFFFFF#000000##FFFFFF
##281C841.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002C82
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #281c84;
/* rgb */ color: rgb(40, 28, 132);
/* oklch */ color: oklch(32.6% 0.163 277.6);
Tailwind
colors: {
  custom: {
    50: '#705ba9',
    500: '#281c84',
    950: '#000000',
  },
}
SCSS
$custom: #281c84;
$custom-light: #705ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#281c84",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 132
  },
  "hsl": {
    "h": 246.923,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32573,
    "c": 0.16255,
    "h": 277.6
  },
  "luminance": 0.02948
}

Semantic roles & 50–950 ramp

primary
#281C84
secondary
#AAB745
accent
#E840D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281C84

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

Preview Lab → · Contrast checker → · Palette generator →

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