#281988#281988

#281988 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.170 H 277.4°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#281988
RGBrgb(40, 25, 136)
HSLhsl(248, 69%, 32%)
HSVhsv(248, 82%, 53%)
CMYKcmyk(70.6%, 81.6%, 0%, 46.7%)
CIE-LABlab(19.73, 41.28, -58.45)
CIE-LCHlch(19.73, 71.56, 305.24°)
OKLaboklab(32.64% 0.0218 -0.1689)
OKLCHoklch(32.64% 0.17 277.4)
XYZxyz(5.6652, 2.9234, 23.5535)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281988 #798819
analogous
#194288 #281988 #601988
triadic
#281988 #882819 #198828
tetradic
#281988 #881942 #798819 #198860
square
#281988 #881942 #798819 #198860
split-complementary
#281988 #886019 #428819
monochromatic
#0A0621 #190F54 #281988 #3723BC #5540DC

Accessibility & contrast

On white

13.25
#281988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#281988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281988
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281988#FFFFFF#000000##FFFFFF
##2819881.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281988;
/* rgb */ color: rgb(40, 25, 136);
/* oklch */ color: oklch(32.6% 0.170 277.4);
Tailwind
colors: {
  custom: {
    50: '#7259ac',
    500: '#281988',
    950: '#000000',
  },
}
SCSS
$custom: #281988;
$custom-light: #7259ac;
$custom-dark: #000000;
JSON
{
  "hex": "#281988",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 248.108,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3264,
    "c": 0.1703,
    "h": 277.4
  },
  "luminance": 0.02924
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #281988

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

Preview Lab → · Contrast checker → · Palette generator →

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