#281B7A#281B7A

#281B7A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.151 H 279.4°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#281B7A
RGBrgb(40, 27, 122)
HSLhsl(248, 64%, 29%)
HSVhsv(248, 78%, 48%)
CMYKcmyk(67.2%, 77.9%, 0%, 52.2%)
CIE-LABlab(18.54, 35.67, -51.55)
CIE-LCHlch(18.54, 62.69, 304.68°)
OKLaboklab(31.34% 0.0245 -0.1488)
OKLCHoklch(31.34% 0.151 279.4)
XYZxyz(4.7787, 2.6397, 18.6663)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B7A #6D7A1B
analogous
#1B3D7A #281B7A #581B7A
triadic
#281B7A #7A281B #1B7A28
tetradic
#281B7A #7A1B3D #6D7A1B #1B7A58
square
#281B7A #7A1B3D #6D7A1B #1B7A58
split-complementary
#281B7A #7A581B #3D7A1B
monochromatic
#080619 #181048 #281B7A #3826AC #503CD4

Accessibility & contrast

On white

13.74
#281B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#281B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B7A
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B7A#FFFFFF#000000##FFFFFF
##281B7A1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002978
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #281b7a;
/* rgb */ color: rgb(40, 27, 122);
/* oklch */ color: oklch(31.3% 0.151 279.4);
Tailwind
colors: {
  custom: {
    50: '#6e59a1',
    500: '#281b7a',
    950: '#000000',
  },
}
SCSS
$custom: #281b7a;
$custom-light: #6e59a1;
$custom-dark: #000000;
JSON
{
  "hex": "#281b7a",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 248.211,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31338,
    "c": 0.15084,
    "h": 279.4
  },
  "luminance": 0.0264
}

Semantic roles & 50–950 ramp

primary
#281B7A
secondary
#9FAE43
accent
#E741D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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