#281989#281989

#281989 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.172 H 277.2°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#281989
RGBrgb(40, 25, 137)
HSLhsl(248, 69%, 32%)
HSVhsv(248, 82%, 54%)
CMYKcmyk(70.8%, 81.8%, 0%, 46.3%)
CIE-LABlab(19.85, 41.60, -58.88)
CIE-LCHlch(19.85, 72.10, 305.24°)
OKLaboklab(32.76% 0.0216 -0.1701)
OKLCHoklch(32.76% 0.172 277.2)
XYZxyz(5.7366, 2.9520, 23.9295)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281989 #7A8919
analogous
#194289 #281989 #601989
triadic
#281989 #892819 #198928
tetradic
#281989 #891942 #7A8919 #198960
square
#281989 #891942 #7A8919 #198960
split-complementary
#281989 #896019 #428919
monochromatic
#0A0621 #191055 #281989 #3722BD #5540DC

Accessibility & contrast

On white

13.20
#281989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#281989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281989
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281989#FFFFFF#000000##FFFFFF
##2819891.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002B87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #281989;
/* rgb */ color: rgb(40, 25, 137);
/* oklch */ color: oklch(32.8% 0.172 277.2);
Tailwind
colors: {
  custom: {
    50: '#7259ad',
    500: '#281989',
    950: '#000000',
  },
}
SCSS
$custom: #281989;
$custom-light: #7259ad;
$custom-dark: #000000;
JSON
{
  "hex": "#281989",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 248.036,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32755,
    "c": 0.17151,
    "h": 277.2
  },
  "luminance": 0.02953
}

Semantic roles & 50–950 ramp

primary
#281989
secondary
#ACBC41
accent
#EC3CD4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281989

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

Preview Lab → · Contrast checker → · Palette generator →

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