#281C99#281C99

#281C99 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.188 H 274.8°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#281C99
RGBrgb(40, 28, 153)
HSLhsl(246, 69%, 35%)
HSVhsv(246, 82%, 60%)
CMYKcmyk(73.9%, 81.7%, 0%, 40%)
CIE-LABlab(22.23, 45.16, -64.87)
CIE-LCHlch(22.23, 79.04, 304.85°)
OKLaboklab(34.96% 0.0158 -0.1876)
OKLCHoklch(34.96% 0.188 274.8)
XYZxyz(7.0382, 3.5808, 30.4511)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C99 #8D991C
analogous
#1C4E99 #281C99 #661C99
triadic
#281C99 #99281C #1C9928
tetradic
#281C99 #991C4E #8D991C #1C9966
square
#281C99 #991C4E #8D991C #1C9966
split-complementary
#281C99 #99661C #4E991C
monochromatic
#0D0932 #1A1365 #281C99 #3625CD #5E50DF

Accessibility & contrast

On white

12.23
#281C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#281C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C99
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C99#FFFFFF#000000##FFFFFF
##281C991.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9C
Deuteranopia (green-blind)
#002F97
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #281c99;
/* rgb */ color: rgb(40, 28, 153);
/* oklch */ color: oklch(35.0% 0.188 274.8);
Tailwind
colors: {
  custom: {
    50: '#755cb8',
    500: '#281c99',
    950: '#000000',
  },
}
SCSS
$custom: #281c99;
$custom-light: #755cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#281c99",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 153
  },
  "hsl": {
    "h": 245.76,
    "s": 69.061,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34958,
    "c": 0.18824,
    "h": 274.8
  },
  "luminance": 0.03582
}

Semantic roles & 50–950 ramp

primary
#281C99
secondary
#B7C24F
accent
#EC3CDB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #281C99

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

Preview Lab → · Contrast checker → · Palette generator →

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