#281588#281588

#281588 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.174 H 277.8°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#281588
RGBrgb(40, 21, 136)
HSLhsl(250, 73%, 31%)
HSVhsv(250, 85%, 53%)
CMYKcmyk(70.6%, 84.6%, 0%, 46.7%)
CIE-LABlab(19.07, 43.21, -59.54)
CIE-LCHlch(19.07, 73.57, 305.97°)
OKLaboklab(32.18% 0.0236 -0.172)
OKLCHoklch(32.18% 0.174 277.8)
XYZxyz(5.5857, 2.7645, 23.5270)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281588 #758815
analogous
#153B88 #281588 #611588
triadic
#281588 #882815 #158828
tetradic
#281588 #88153B #758815 #158861
square
#281588 #88153B #758815 #158861
split-complementary
#281588 #886115 #3B8815
monochromatic
#09051E #180D53 #281588 #381DBD #5337E0

Accessibility & contrast

On white

13.52
#281588 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#281588 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281588
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281588#FFFFFF#000000##FFFFFF
##2815881.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338B
Deuteranopia (green-blind)
#002986
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #281588;
/* rgb */ color: rgb(40, 21, 136);
/* oklch */ color: oklch(32.2% 0.174 277.8);
Tailwind
colors: {
  custom: {
    50: '#7257ac',
    500: '#281588',
    950: '#000000',
  },
}
SCSS
$custom: #281588;
$custom-light: #7257ac;
$custom-dark: #000000;
JSON
{
  "hex": "#281588",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 136
  },
  "hsl": {
    "h": 249.913,
    "s": 73.248,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32183,
    "c": 0.17362,
    "h": 277.8
  },
  "luminance": 0.02765
}

Semantic roles & 50–950 ramp

primary
#281588
secondary
#A7BC3D
accent
#F038D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #281588

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

Preview Lab → · Contrast checker → · Palette generator →

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