#281788#281788

#281788 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.4% C 0.172 H 277.6°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#281788
RGBrgb(40, 23, 136)
HSLhsl(249, 71%, 31%)
HSVhsv(249, 83%, 53%)
CMYKcmyk(70.6%, 83.1%, 0%, 46.7%)
CIE-LABlab(19.40, 42.27, -59.01)
CIE-LCHlch(19.40, 72.59, 305.62°)
OKLaboklab(32.41% 0.0228 -0.1705)
OKLCHoklch(32.41% 0.172 277.6)
XYZxyz(5.6240, 2.8410, 23.5398)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281788 #778817
analogous
#173E88 #281788 #601788
triadic
#281788 #882817 #178828
tetradic
#281788 #88173E #778817 #178860
square
#281788 #88173E #778817 #178860
split-complementary
#281788 #886017 #3E8817
monochromatic
#09051F #190E54 #281788 #3720BC #543BDE

Accessibility & contrast

On white

13.39
#281788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281788
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281788#FFFFFF#000000##FFFFFF
##2817881.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338B
Deuteranopia (green-blind)
#002A86
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #281788;
/* rgb */ color: rgb(40, 23, 136);
/* oklch */ color: oklch(32.4% 0.172 277.6);
Tailwind
colors: {
  custom: {
    50: '#7258ac',
    500: '#281788',
    950: '#000000',
  },
}
SCSS
$custom: #281788;
$custom-light: #7258ac;
$custom-dark: #000000;
JSON
{
  "hex": "#281788",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 249.027,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32405,
    "c": 0.172,
    "h": 277.6
  },
  "luminance": 0.02841
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #281788

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

Preview Lab → · Contrast checker → · Palette generator →

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