#281B80#281B80

#281B80 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.158 H 278.3°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#281B80
RGBrgb(40, 27, 128)
HSLhsl(248, 65%, 30%)
HSVhsv(248, 79%, 50%)
CMYKcmyk(68.8%, 78.9%, 0%, 49.8%)
CIE-LABlab(19.20, 37.64, -54.29)
CIE-LCHlch(19.20, 66.07, 304.74°)
OKLaboklab(32% 0.023 -0.1568)
OKLCHoklch(32% 0.158 278.3)
XYZxyz(5.1620, 2.7931, 20.6850)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B80 #73801B
analogous
#1B4080 #281B80 #5A1B80
triadic
#281B80 #80281B #1B8028
tetradic
#281B80 #801B40 #73801B #1B805A
square
#281B80 #801B40 #73801B #1B805A
split-complementary
#281B80 #805A1B #40801B
monochromatic
#08061B #18104D #281B80 #3826B3 #523FD6

Accessibility & contrast

On white

13.47
#281B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#281B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B80
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B80#FFFFFF#000000##FFFFFF
##281B801.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#002A7E
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #281b80;
/* rgb */ color: rgb(40, 27, 128);
/* oklch */ color: oklch(32.0% 0.158 278.3);
Tailwind
colors: {
  custom: {
    50: '#705aa6',
    500: '#281b80',
    950: '#000000',
  },
}
SCSS
$custom: #281b80;
$custom-light: #705aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#281b80",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 128
  },
  "hsl": {
    "h": 247.723,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31995,
    "c": 0.15848,
    "h": 278.3
  },
  "luminance": 0.02793
}

Semantic roles & 50–950 ramp

primary
#281B80
secondary
#A5B443
accent
#E840D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281B80

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

Preview Lab → · Contrast checker → · Palette generator →

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