#281F99#281F99

#281F99 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.186 H 274.5°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#281F99
RGBrgb(40, 31, 153)
HSLhsl(244, 66%, 36%)
HSVhsv(244, 80%, 60%)
CMYKcmyk(73.9%, 79.7%, 0%, 40%)
CIE-LABlab(22.76, 43.64, -64.00)
CIE-LCHlch(22.76, 77.46, 304.29°)
OKLaboklab(35.32% 0.0146 -0.1851)
OKLCHoklch(35.32% 0.186 274.5)
XYZxyz(7.1129, 3.7303, 30.4760)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F99 #90991F
analogous
#1F5399 #281F99 #651F99
triadic
#281F99 #99281F #1F9928
tetradic
#281F99 #991F53 #90991F #1F9965
square
#281F99 #991F53 #90991F #1F9965
split-complementary
#281F99 #99651F #53991F
monochromatic
#0D0A33 #1B1566 #281F99 #3529CC #6056DD

Accessibility & contrast

On white

12.03
#281F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#281F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F99
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F99#FFFFFF#000000##FFFFFF
##281F991.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281f99;
/* rgb */ color: rgb(40, 31, 153);
/* oklch */ color: oklch(35.3% 0.186 274.5);
Tailwind
colors: {
  custom: {
    50: '#755eb8',
    500: '#281f99',
    950: '#000000',
  },
}
SCSS
$custom: #281f99;
$custom-light: #755eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#281f99",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 244.426,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35323,
    "c": 0.18568,
    "h": 274.5
  },
  "luminance": 0.03731
}

Semantic roles & 50–950 ramp

primary
#281F99
secondary
#B8C054
accent
#E93FDD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #281F99

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

Preview Lab → · Contrast checker → · Palette generator →

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