#281F9F#281F9F

#281F9F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.0% C 0.193 H 273.9°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#281F9F
RGBrgb(40, 31, 159)
HSLhsl(244, 67%, 37%)
HSVhsv(244, 81%, 62%)
CMYKcmyk(74.8%, 80.5%, 0%, 37.6%)
CIE-LABlab(23.45, 45.56, -66.53)
CIE-LCHlch(23.45, 80.64, 304.40°)
OKLaboklab(36.01% 0.0131 -0.1924)
OKLCHoklch(36.01% 0.193 273.9)
XYZxyz(7.6210, 3.9335, 33.1518)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F9F #969F1F
analogous
#1F569F #281F9F #681F9F
triadic
#281F9F #9F281F #1F9F28
tetradic
#281F9F #9F1F56 #969F1F #1F9F68
square
#281F9F #9F1F56 #969F1F #1F9F68
split-complementary
#281F9F #9F681F #569F1F
monochromatic
#0E0B39 #1B156C #281F9F #3529D2 #635ADF

Accessibility & contrast

On white

11.75
#281F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#281F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F9F
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F9F#FFFFFF#000000##FFFFFF
##281F9F1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00329D
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #281f9f;
/* rgb */ color: rgb(40, 31, 159);
/* oklch */ color: oklch(36.0% 0.193 273.9);
Tailwind
colors: {
  custom: {
    50: '#775ebd',
    500: '#281f9f',
    950: '#000000',
  },
}
SCSS
$custom: #281f9f;
$custom-light: #775ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#281f9f",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 244.219,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36008,
    "c": 0.1929,
    "h": 273.9
  },
  "luminance": 0.03934
}

Semantic roles & 50–950 ramp

primary
#281F9F
secondary
#BBC357
accent
#EA3EDE
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #281F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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