#281888#281888

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

Color values

HEX#281888
RGBrgb(40, 24, 136)
HSLhsl(249, 70%, 31%)
HSVhsv(249, 82%, 53%)
CMYKcmyk(70.6%, 82.4%, 0%, 46.7%)
CIE-LABlab(19.56, 41.78, -58.73)
CIE-LCHlch(19.56, 72.08, 305.43°)
OKLaboklab(32.52% 0.0223 -0.1697)
OKLCHoklch(32.52% 0.171 277.5)
XYZxyz(5.6442, 2.8815, 23.5465)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281888 #788818
analogous
#184088 #281888 #601888
triadic
#281888 #882818 #188828
tetradic
#281888 #881840 #788818 #188860
square
#281888 #881840 #788818 #188860
split-complementary
#281888 #886018 #408818
monochromatic
#090620 #190F54 #281888 #3721BC #543EDD

Accessibility & contrast

On white

13.32
#281888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281888
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281888#FFFFFF#000000##FFFFFF
##2818881.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348B
Deuteranopia (green-blind)
#002B86
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #281888;
/* rgb */ color: rgb(40, 24, 136);
/* oklch */ color: oklch(32.5% 0.171 277.5);
Tailwind
colors: {
  custom: {
    50: '#7259ac',
    500: '#281888',
    950: '#000000',
  },
}
SCSS
$custom: #281888;
$custom-light: #7259ac;
$custom-dark: #000000;
JSON
{
  "hex": "#281888",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 136
  },
  "hsl": {
    "h": 248.571,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32521,
    "c": 0.17116,
    "h": 277.5
  },
  "luminance": 0.02882
}

Semantic roles & 50–950 ramp

primary
#281888
secondary
#AABC40
accent
#ED3BD3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281888

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

Preview Lab → · Contrast checker → · Palette generator →

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