#281C74#281C74

#281C74 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.142 H 280.3°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#281C74
RGBrgb(40, 28, 116)
HSLhsl(248, 61%, 28%)
HSVhsv(248, 76%, 45%)
CMYKcmyk(65.5%, 75.9%, 0%, 54.5%)
CIE-LABlab(18.11, 33.08, -48.41)
CIE-LCHlch(18.11, 58.63, 304.34°)
OKLaboklab(30.84% 0.0253 -0.1397)
OKLCHoklch(30.84% 0.142 280.3)
XYZxyz(4.4417, 2.5422, 16.7762)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C74 #68741C
analogous
#1C3C74 #281C74 #541C74
triadic
#281C74 #74281C #1C7428
tetradic
#281C74 #741C3C #68741C #1C7454
square
#281C74 #741C3C #68741C #1C7454
split-complementary
#281C74 #74541C #3C741C
monochromatic
#090619 #171043 #281C74 #3928A5 #4F3BD0

Accessibility & contrast

On white

13.92
#281C74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#281C74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C74
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C74#FFFFFF#000000##FFFFFF
##281C741.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #281c74;
/* rgb */ color: rgb(40, 28, 116);
/* oklch */ color: oklch(30.8% 0.142 280.3);
Tailwind
colors: {
  custom: {
    50: '#6d5a9d',
    500: '#281c74',
    950: '#000000',
  },
}
SCSS
$custom: #281c74;
$custom-light: #6d5a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#281c74",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 116
  },
  "hsl": {
    "h": 248.182,
    "s": 61.111,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30842,
    "c": 0.14194,
    "h": 280.3
  },
  "luminance": 0.02543
}

Semantic roles & 50–950 ramp

primary
#281C74
secondary
#9BA843
accent
#E444CE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #281C74

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

Preview Lab → · Contrast checker → · Palette generator →

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