#281F9D#281F9D

#281F9D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.191 H 274.1°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#281F9D
RGBrgb(40, 31, 157)
HSLhsl(244, 67%, 37%)
HSVhsv(244, 80%, 62%)
CMYKcmyk(74.5%, 80.3%, 0%, 38.4%)
CIE-LABlab(23.22, 44.92, -65.69)
CIE-LCHlch(23.22, 79.58, 304.37°)
OKLaboklab(35.78% 0.0136 -0.19)
OKLCHoklch(35.78% 0.191 274.1)
XYZxyz(7.4488, 3.8647, 32.2451)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F9D #949D1F
analogous
#1F559D #281F9D #671F9D
triadic
#281F9D #9D281F #1F9D28
tetradic
#281F9D #9D1F55 #949D1F #1F9D67
square
#281F9D #9D1F55 #949D1F #1F9D67
split-complementary
#281F9D #9D671F #559D1F
monochromatic
#0E0B37 #1B156A #281F9D #3529D0 #6258DE

Accessibility & contrast

On white

11.84
#281F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#281F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F9D
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F9D#FFFFFF#000000##FFFFFF
##281F9D1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA0
Deuteranopia (green-blind)
#00319B
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #281f9d;
/* rgb */ color: rgb(40, 31, 157);
/* oklch */ color: oklch(35.8% 0.191 274.1);
Tailwind
colors: {
  custom: {
    50: '#765ebb',
    500: '#281f9d',
    950: '#000000',
  },
}
SCSS
$custom: #281f9d;
$custom-light: #765ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#281f9d",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 244.286,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35779,
    "c": 0.19051,
    "h": 274.1
  },
  "luminance": 0.03865
}

Semantic roles & 50–950 ramp

primary
#281F9D
secondary
#BAC256
accent
#EA3EDE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #281F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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