#281C8C#281C8C

#281C8C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.172 H 276.4°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#281C8C
RGBrgb(40, 28, 140)
HSLhsl(246, 67%, 33%)
HSVhsv(246, 80%, 55%)
CMYKcmyk(71.4%, 80%, 0%, 45.1%)
CIE-LABlab(20.73, 41.02, -59.31)
CIE-LCHlch(20.73, 72.11, 304.67°)
OKLaboklab(33.47% 0.0193 -0.1714)
OKLCHoklch(33.47% 0.173 276.4)
XYZxyz(6.0224, 3.1745, 25.1012)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C8C #808C1C
analogous
#1C488C #281C8C #601C8C
triadic
#281C8C #8C281C #1C8C28
tetradic
#281C8C #8C1C48 #808C1C #1C8C60
square
#281C8C #8C1C48 #808C1C #1C8C60
split-complementary
#281C8C #8C601C #488C1C
monochromatic
#0B0826 #191259 #281C8C #3726BF #5848DA

Accessibility & contrast

On white

12.84
#281C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#281C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C8C
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C8C#FFFFFF#000000##FFFFFF
##281C8C1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#002D8A
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #281c8c;
/* rgb */ color: rgb(40, 28, 140);
/* oklch */ color: oklch(33.5% 0.172 276.4);
Tailwind
colors: {
  custom: {
    50: '#725baf',
    500: '#281c8c',
    950: '#000000',
  },
}
SCSS
$custom: #281c8c;
$custom-light: #725baf;
$custom-dark: #000000;
JSON
{
  "hex": "#281c8c",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 246.429,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33469,
    "c": 0.1725,
    "h": 276.4
  },
  "luminance": 0.03175
}

Semantic roles & 50–950 ramp

primary
#281C8C
secondary
#B0BC48
accent
#EA3ED7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #281C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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