#281C9B#281C9B

#281C9B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.2% C 0.191 H 274.6°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#281C9B
RGBrgb(40, 28, 155)
HSLhsl(246, 69%, 36%)
HSVhsv(246, 82%, 61%)
CMYKcmyk(74.2%, 81.9%, 0%, 39.2%)
CIE-LABlab(22.47, 45.79, -65.71)
CIE-LCHlch(22.47, 80.09, 304.87°)
OKLaboklab(35.19% 0.0153 -0.19)
OKLCHoklch(35.19% 0.191 274.6)
XYZxyz(7.2048, 3.6475, 31.3283)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C9B #8F9B1C
analogous
#1C4F9B #281C9B #671C9B
triadic
#281C9B #9B281C #1C9B28
tetradic
#281C9B #9B1C4F #8F9B1C #1C9B67
square
#281C9B #9B1C4F #8F9B1C #1C9B67
split-complementary
#281C9B #9B671C #4F9B1C
monochromatic
#0D0933 #1B1367 #281C9B #3525CF #5F52E0

Accessibility & contrast

On white

12.14
#281C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#281C9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C9B
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C9B#FFFFFF#000000##FFFFFF
##281C9B1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9E
Deuteranopia (green-blind)
#003099
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #281c9b;
/* rgb */ color: rgb(40, 28, 155);
/* oklch */ color: oklch(35.2% 0.191 274.6);
Tailwind
colors: {
  custom: {
    50: '#765cba',
    500: '#281c9b',
    950: '#000000',
  },
}
SCSS
$custom: #281c9b;
$custom-light: #765cba;
$custom-dark: #000000;
JSON
{
  "hex": "#281c9b",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 155
  },
  "hsl": {
    "h": 245.669,
    "s": 69.399,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3519,
    "c": 0.19063,
    "h": 274.6
  },
  "luminance": 0.03648
}

Semantic roles & 50–950 ramp

primary
#281C9B
secondary
#B8C350
accent
#EC3CDC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #281C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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