#281AB4#281AB4

#281AB4 is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 38.0% C 0.221 H 272.3°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#281AB4
RGBrgb(40, 26, 180)
HSLhsl(245, 75%, 40%)
HSVhsv(245, 86%, 71%)
CMYKcmyk(77.8%, 85.6%, 0%, 29.4%)
CIE-LABlab(25.21, 54.24, -76.29)
CIE-LCHlch(25.21, 93.61, 305.41°)
OKLaboklab(37.95% 0.0091 -0.2206)
OKLCHoklch(37.95% 0.221 272.3)
XYZxyz(9.4799, 4.4842, 43.5371)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281AB4 #A6B41A
analogous
#1A59B4 #281AB4 #751AB4
triadic
#281AB4 #B4281A #1AB428
tetradic
#281AB4 #B41A59 #A6B41A #1AB475
square
#281AB4 #B41A59 #A6B41A #1AB475
split-complementary
#281AB4 #B4751A #59B41A
monochromatic
#100B49 #1C127F #281AB4 #3B2BE0 #6D60E8

Accessibility & contrast

On white

11.07
#281AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#281AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281AB4
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281AB4#FFFFFF#000000##FFFFFF
##281AB41.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B8
Deuteranopia (green-blind)
#0034B1
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #281ab4;
/* rgb */ color: rgb(40, 26, 180);
/* oklch */ color: oklch(38.0% 0.221 272.3);
Tailwind
colors: {
  custom: {
    50: '#7c5dcc',
    500: '#281ab4',
    950: '#000000',
  },
}
SCSS
$custom: #281ab4;
$custom-light: #7c5dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#281ab4",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 180
  },
  "hsl": {
    "h": 245.455,
    "s": 74.757,
    "l": 40.392
  },
  "oklch": {
    "l": 0.37954,
    "c": 0.22082,
    "h": 272.3
  },
  "luminance": 0.04485
}

Semantic roles & 50–950 ramp

primary
#281AB4
secondary
#C2CC5D
accent
#F136E0
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #281AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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