#281C76#281C76

#281C76 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.145 H 279.9°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#281C76
RGBrgb(40, 28, 118)
HSLhsl(248, 62%, 29%)
HSVhsv(248, 76%, 46%)
CMYKcmyk(66.1%, 76.3%, 0%, 53.7%)
CIE-LABlab(18.32, 33.75, -49.35)
CIE-LCHlch(18.32, 59.79, 304.37°)
OKLaboklab(31.05% 0.0248 -0.1424)
OKLCHoklch(31.05% 0.145 279.9)
XYZxyz(4.5593, 2.5893, 17.3955)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C76 #6A761C
analogous
#1C3D76 #281C76 #551C76
triadic
#281C76 #76281C #1C7628
tetradic
#281C76 #761C3D #6A761C #1C7655
square
#281C76 #761C3D #6A761C #1C7655
split-complementary
#281C76 #76551C #3D761C
monochromatic
#080619 #171045 #281C76 #3928A7 #503CD1

Accessibility & contrast

On white

13.83
#281C76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#281C76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C76
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C76#FFFFFF#000000##FFFFFF
##281C761.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #281c76;
/* rgb */ color: rgb(40, 28, 118);
/* oklch */ color: oklch(31.1% 0.145 279.9);
Tailwind
colors: {
  custom: {
    50: '#6d5a9e',
    500: '#281c76',
    950: '#000000',
  },
}
SCSS
$custom: #281c76;
$custom-light: #6d5a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#281c76",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 118
  },
  "hsl": {
    "h": 248,
    "s": 61.644,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31053,
    "c": 0.14456,
    "h": 279.9
  },
  "luminance": 0.0259
}

Semantic roles & 50–950 ramp

primary
#281C76
secondary
#9DAA44
accent
#E543CF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #281C76

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

Preview Lab → · Contrast checker → · Palette generator →

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