#281789#281789

#281789 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.173 H 277.5°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#281789
RGBrgb(40, 23, 137)
HSLhsl(249, 71%, 31%)
HSVhsv(249, 83%, 54%)
CMYKcmyk(70.8%, 83.2%, 0%, 46.3%)
CIE-LABlab(19.51, 42.58, -59.44)
CIE-LCHlch(19.51, 73.12, 305.62°)
OKLaboklab(32.52% 0.0225 -0.1717)
OKLCHoklch(32.52% 0.173 277.5)
XYZxyz(5.6954, 2.8695, 23.9158)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281789 #788917
analogous
#173F89 #281789 #611789
triadic
#281789 #892817 #178928
tetradic
#281789 #89173F #788917 #178961
square
#281789 #89173F #788917 #178961
split-complementary
#281789 #896117 #3F8917
monochromatic
#090520 #190E55 #281789 #3720BD #543CDE

Accessibility & contrast

On white

13.34
#281789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#281789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281789
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281789#FFFFFF#000000##FFFFFF
##2817891.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002A87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #281789;
/* rgb */ color: rgb(40, 23, 137);
/* oklch */ color: oklch(32.5% 0.173 277.5);
Tailwind
colors: {
  custom: {
    50: '#7258ad',
    500: '#281789',
    950: '#000000',
  },
}
SCSS
$custom: #281789;
$custom-light: #7258ad;
$custom-dark: #000000;
JSON
{
  "hex": "#281789",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 248.947,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32521,
    "c": 0.1732,
    "h": 277.5
  },
  "luminance": 0.0287
}

Semantic roles & 50–950 ramp

primary
#281789
secondary
#AABD3F
accent
#EE3AD3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #281789

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

Preview Lab → · Contrast checker → · Palette generator →

#281789 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva