#281C93#281C93

#281C93 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.181 H 275.5°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#281C93
RGBrgb(40, 28, 147)
HSLhsl(246, 68%, 34%)
HSVhsv(246, 81%, 58%)
CMYKcmyk(72.8%, 81%, 0%, 42.4%)
CIE-LABlab(21.53, 43.26, -62.33)
CIE-LCHlch(21.53, 75.87, 304.76°)
OKLaboklab(34.27% 0.0174 -0.1802)
OKLCHoklch(34.27% 0.181 275.5)
XYZxyz(6.5551, 3.3876, 27.9065)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C93 #87931C
analogous
#1C4C93 #281C93 #631C93
triadic
#281C93 #93281C #1C9328
tetradic
#281C93 #931C4C #87931C #1C9363
square
#281C93 #931C4C #87931C #1C9363
split-complementary
#281C93 #93631C #4C931C
monochromatic
#0C082C #1A1260 #281C93 #3626C6 #5B4CDD

Accessibility & contrast

On white

12.52
#281C93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#281C93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C93
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C93#FFFFFF#000000##FFFFFF
##281C931.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003996
Deuteranopia (green-blind)
#002E91
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #281c93;
/* rgb */ color: rgb(40, 28, 147);
/* oklch */ color: oklch(34.3% 0.181 275.5);
Tailwind
colors: {
  custom: {
    50: '#745cb4',
    500: '#281c93',
    950: '#000000',
  },
}
SCSS
$custom: #281c93;
$custom-light: #745cb4;
$custom-dark: #000000;
JSON
{
  "hex": "#281c93",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 147
  },
  "hsl": {
    "h": 246.05,
    "s": 68,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34266,
    "c": 0.18105,
    "h": 275.5
  },
  "luminance": 0.03388
}

Semantic roles & 50–950 ramp

primary
#281C93
secondary
#B4BF4C
accent
#EB3DD9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281C93

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

Preview Lab → · Contrast checker → · Palette generator →

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