#281B77#281B77

#281B77 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.147 H 279.9°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#281B77
RGBrgb(40, 27, 119)
HSLhsl(248, 63%, 29%)
HSVhsv(248, 77%, 47%)
CMYKcmyk(66.4%, 77.3%, 0%, 53.3%)
CIE-LABlab(18.22, 34.67, -50.16)
CIE-LCHlch(18.22, 60.98, 304.65°)
OKLaboklab(31.01% 0.0253 -0.1448)
OKLCHoklch(31.01% 0.147 279.9)
XYZxyz(4.5957, 2.5665, 17.7024)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B77 #6A771B
analogous
#1B3C77 #281B77 #561B77
triadic
#281B77 #77281B #1B7728
tetradic
#281B77 #771B3C #6A771B #1B7756
square
#281B77 #771B3C #6A771B #1B7756
split-complementary
#281B77 #77561B #3C771B
monochromatic
#080619 #171045 #281B77 #3926A9 #503AD2

Accessibility & contrast

On white

13.88
#281B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#281B77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B77
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B77#FFFFFF#000000##FFFFFF
##281B771.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002975
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #281b77;
/* rgb */ color: rgb(40, 27, 119);
/* oklch */ color: oklch(31.0% 0.147 279.9);
Tailwind
colors: {
  custom: {
    50: '#6e599f',
    500: '#281b77',
    950: '#000000',
  },
}
SCSS
$custom: #281b77;
$custom-light: #6e599f;
$custom-dark: #000000;
JSON
{
  "hex": "#281b77",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 119
  },
  "hsl": {
    "h": 248.478,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31014,
    "c": 0.14696,
    "h": 279.9
  },
  "luminance": 0.02567
}

Semantic roles & 50–950 ramp

primary
#281B77
secondary
#9DAB42
accent
#E642CF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #281B77

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

Preview Lab → · Contrast checker → · Palette generator →

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