#281B97#281B97

#281B97 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.187 H 275.1°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#281B97
RGBrgb(40, 27, 151)
HSLhsl(246, 70%, 35%)
HSVhsv(246, 82%, 59%)
CMYKcmyk(73.5%, 82.1%, 0%, 40.8%)
CIE-LABlab(21.83, 45.02, -64.31)
CIE-LCHlch(21.83, 78.50, 305.00°)
OKLaboklab(34.61% 0.0167 -0.1859)
OKLCHoklch(34.61% 0.187 275.1)
XYZxyz(6.8511, 3.4687, 29.5806)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B97 #8A971B
analogous
#1B4C97 #281B97 #661B97
triadic
#281B97 #97281B #1B9728
tetradic
#281B97 #971B4C #8A971B #1B9766
square
#281B97 #971B4C #8A971B #1B9766
split-complementary
#281B97 #97661B #4C971B
monochromatic
#0C082F #1A1263 #281B97 #3624CB #5D4DDF

Accessibility & contrast

On white

12.40
#281B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#281B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B97
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B97#FFFFFF#000000##FFFFFF
##281B971.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#002F95
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #281b97;
/* rgb */ color: rgb(40, 27, 151);
/* oklch */ color: oklch(34.6% 0.187 275.1);
Tailwind
colors: {
  custom: {
    50: '#755bb7',
    500: '#281b97',
    950: '#000000',
  },
}
SCSS
$custom: #281b97;
$custom-light: #755bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#281b97",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 246.29,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34609,
    "c": 0.18669,
    "h": 275.1
  },
  "luminance": 0.03469
}

Semantic roles & 50–950 ramp

primary
#281B97
secondary
#B5C14C
accent
#EC3BDA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281B97

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

Preview Lab → · Contrast checker → · Palette generator →

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