#281A80#281A80

#281A80 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.159 H 278.5°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#281A80
RGBrgb(40, 26, 128)
HSLhsl(248, 66%, 30%)
HSVhsv(248, 80%, 50%)
CMYKcmyk(68.8%, 79.7%, 0%, 49.8%)
CIE-LABlab(19.00, 38.19, -54.61)
CIE-LCHlch(19.00, 66.64, 304.97°)
OKLaboklab(31.86% 0.0236 -0.1577)
OKLCHoklch(31.86% 0.159 278.5)
XYZxyz(5.1395, 2.7480, 20.6775)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A80 #72801A
analogous
#1A3F80 #281A80 #5B1A80
triadic
#281A80 #80281A #1A8028
tetradic
#281A80 #801A3F #72801A #1A805B
square
#281A80 #801A3F #72801A #1A805B
split-complementary
#281A80 #805B1A #3F801A
monochromatic
#08051A #18104D #281A80 #3824B3 #523DD8

Accessibility & contrast

On white

13.55
#281A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#281A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A80
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A80#FFFFFF#000000##FFFFFF
##281A801.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#002A7E
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #281a80;
/* rgb */ color: rgb(40, 26, 128);
/* oklch */ color: oklch(31.9% 0.159 278.5);
Tailwind
colors: {
  custom: {
    50: '#7059a6',
    500: '#281a80',
    950: '#000000',
  },
}
SCSS
$custom: #281a80;
$custom-light: #7059a6;
$custom-dark: #000000;
JSON
{
  "hex": "#281a80",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 128
  },
  "hsl": {
    "h": 248.235,
    "s": 66.234,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31862,
    "c": 0.15947,
    "h": 278.5
  },
  "luminance": 0.02748
}

Semantic roles & 50–950 ramp

primary
#281A80
secondary
#A4B442
accent
#E93FD2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281A80

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

Preview Lab → · Contrast checker → · Palette generator →

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