#281F9B#281F9B

#281F9B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.188 H 274.3°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#281F9B
RGBrgb(40, 31, 155)
HSLhsl(244, 67%, 36%)
HSVhsv(244, 80%, 61%)
CMYKcmyk(74.2%, 80%, 0%, 39.2%)
CIE-LABlab(22.99, 44.28, -64.85)
CIE-LCHlch(22.99, 78.53, 304.33°)
OKLaboklab(35.55% 0.0141 -0.1876)
OKLCHoklch(35.55% 0.188 274.3)
XYZxyz(7.2795, 3.7969, 31.3532)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F9B #929B1F
analogous
#1F549B #281F9B #661F9B
triadic
#281F9B #9B281F #1F9B28
tetradic
#281F9B #9B1F54 #929B1F #1F9B66
square
#281F9B #9B1F54 #929B1F #1F9B66
split-complementary
#281F9B #9B661F #549B1F
monochromatic
#0E0B35 #1B1568 #281F9B #3529CE #6157DD

Accessibility & contrast

On white

11.93
#281F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#281F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F9B
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F9B#FFFFFF#000000##FFFFFF
##281F9B1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9E
Deuteranopia (green-blind)
#003199
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #281f9b;
/* rgb */ color: rgb(40, 31, 155);
/* oklch */ color: oklch(35.6% 0.188 274.3);
Tailwind
colors: {
  custom: {
    50: '#765eba',
    500: '#281f9b',
    950: '#000000',
  },
}
SCSS
$custom: #281f9b;
$custom-light: #765eba;
$custom-dark: #000000;
JSON
{
  "hex": "#281f9b",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 244.355,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35551,
    "c": 0.1881,
    "h": 274.3
  },
  "luminance": 0.03798
}

Semantic roles & 50–950 ramp

primary
#281F9B
secondary
#B9C155
accent
#EA3EDD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #281F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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