#281B99#281B99

#281B99 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.8% C 0.189 H 274.9°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#281B99
RGBrgb(40, 27, 153)
HSLhsl(246, 70%, 35%)
HSVhsv(246, 82%, 60%)
CMYKcmyk(73.9%, 82.4%, 0%, 40%)
CIE-LABlab(22.07, 45.65, -65.15)
CIE-LCHlch(22.07, 79.55, 305.02°)
OKLaboklab(34.84% 0.0162 -0.1884)
OKLCHoklch(34.84% 0.189 274.9)
XYZxyz(7.0149, 3.5342, 30.4433)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B99 #8C991B
analogous
#1B4D99 #281B99 #671B99
triadic
#281B99 #99281B #1B9928
tetradic
#281B99 #991B4D #8C991B #1B9967
square
#281B99 #991B4D #8C991B #1B9967
split-complementary
#281B99 #99671B #4D991B
monochromatic
#0D0931 #1A1265 #281B99 #3624CD #5E4FE0

Accessibility & contrast

On white

12.30
#281B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#281B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B99
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B99#FFFFFF#000000##FFFFFF
##281B991.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281b99;
/* rgb */ color: rgb(40, 27, 153);
/* oklch */ color: oklch(34.8% 0.189 274.9);
Tailwind
colors: {
  custom: {
    50: '#765cb8',
    500: '#281b99',
    950: '#000000',
  },
}
SCSS
$custom: #281b99;
$custom-light: #765cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#281b99",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 153
  },
  "hsl": {
    "h": 246.19,
    "s": 70,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34842,
    "c": 0.18906,
    "h": 274.9
  },
  "luminance": 0.03535
}

Semantic roles & 50–950 ramp

primary
#281B99
secondary
#B6C24E
accent
#ED3BDA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #281B99

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

Preview Lab → · Contrast checker → · Palette generator →

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