#281C71#281C71

#281C71 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.138 H 280.8°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#281C71
RGBrgb(40, 28, 113)
HSLhsl(248, 60%, 28%)
HSVhsv(248, 75%, 44%)
CMYKcmyk(64.6%, 75.2%, 0%, 55.7%)
CIE-LABlab(17.80, 32.06, -46.98)
CIE-LCHlch(17.80, 56.88, 304.31°)
OKLaboklab(30.53% 0.0259 -0.1355)
OKLCHoklch(30.53% 0.138 280.8)
XYZxyz(4.2700, 2.4736, 15.8720)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C71 #65711C
analogous
#1C3A71 #281C71 #531C71
triadic
#281C71 #71281C #1C7128
tetradic
#281C71 #711C3A #65711C #1C7153
square
#281C71 #711C3A #65711C #1C7153
split-complementary
#281C71 #71531C #3A711C
monochromatic
#090619 #171040 #281C71 #3928A2 #4E39CE

Accessibility & contrast

On white

14.05
#281C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#281C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C71
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C71#FFFFFF#000000##FFFFFF
##281C711.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#00286F
Tritanopia (blue-blind)
#003344
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #281c71;
/* rgb */ color: rgb(40, 28, 113);
/* oklch */ color: oklch(30.5% 0.138 280.8);
Tailwind
colors: {
  custom: {
    50: '#6c5a9b',
    500: '#281c71',
    950: '#000000',
  },
}
SCSS
$custom: #281c71;
$custom-light: #6c5a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#281c71",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 113
  },
  "hsl": {
    "h": 248.471,
    "s": 60.284,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30528,
    "c": 0.13795,
    "h": 280.8
  },
  "luminance": 0.02474
}

Semantic roles & 50–950 ramp

primary
#281C71
secondary
#98A643
accent
#E344CD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #281C71

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

Preview Lab → · Contrast checker → · Palette generator →

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