#281F9A#281F9A

#281F9A is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.187 H 274.4°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#281F9A
RGBrgb(40, 31, 154)
HSLhsl(244, 66%, 36%)
HSVhsv(244, 80%, 60%)
CMYKcmyk(74%, 79.9%, 0%, 39.6%)
CIE-LABlab(22.87, 43.96, -64.43)
CIE-LCHlch(22.87, 78.00, 304.31°)
OKLaboklab(35.44% 0.0144 -0.1863)
OKLCHoklch(35.44% 0.187 274.4)
XYZxyz(7.1959, 3.7635, 30.9128)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F9A #919A1F
analogous
#1F549A #281F9A #661F9A
triadic
#281F9A #9A281F #1F9A28
tetradic
#281F9A #9A1F54 #919A1F #1F9A66
square
#281F9A #9A1F54 #919A1F #1F9A66
split-complementary
#281F9A #9A661F #549A1F
monochromatic
#0E0A34 #1B1567 #281F9A #3529CD #6056DD

Accessibility & contrast

On white

11.98
#281F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281F9A
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F9A#FFFFFF#000000##FFFFFF
##281F9A1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9D
Deuteranopia (green-blind)
#003198
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #281f9a;
/* rgb */ color: rgb(40, 31, 154);
/* oklch */ color: oklch(35.4% 0.187 274.4);
Tailwind
colors: {
  custom: {
    50: '#755eb9',
    500: '#281f9a',
    950: '#000000',
  },
}
SCSS
$custom: #281f9a;
$custom-light: #755eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#281f9a",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 244.39,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35437,
    "c": 0.18689,
    "h": 274.4
  },
  "luminance": 0.03764
}

Semantic roles & 50–950 ramp

primary
#281F9A
secondary
#B9C154
accent
#E93EDD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #281F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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