#281986#281986

#281986 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.168 H 277.7°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#281986
RGBrgb(40, 25, 134)
HSLhsl(248, 69%, 31%)
HSVhsv(248, 81%, 53%)
CMYKcmyk(70.1%, 81.3%, 0%, 47.5%)
CIE-LABlab(19.50, 40.65, -57.57)
CIE-LCHlch(19.50, 70.48, 305.22°)
OKLaboklab(32.41% 0.0224 -0.1663)
OKLCHoklch(32.41% 0.168 277.7)
XYZxyz(5.5244, 2.8671, 22.8119)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281986 #778619
analogous
#194086 #281986 #5E1986
triadic
#281986 #862819 #198628
tetradic
#281986 #861940 #778619 #19865E
square
#281986 #861940 #778619 #19865E
split-complementary
#281986 #865E19 #408619
monochromatic
#09061F #190F52 #281986 #3723BA #543EDB

Accessibility & contrast

On white

13.35
#281986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281986
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281986#FFFFFF#000000##FFFFFF
##2819861.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002B84
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #281986;
/* rgb */ color: rgb(40, 25, 134);
/* oklch */ color: oklch(32.4% 0.168 277.7);
Tailwind
colors: {
  custom: {
    50: '#7159aa',
    500: '#281986',
    950: '#000000',
  },
}
SCSS
$custom: #281986;
$custom-light: #7159aa;
$custom-dark: #000000;
JSON
{
  "hex": "#281986",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 248.257,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32411,
    "c": 0.16784,
    "h": 277.7
  },
  "luminance": 0.02868
}

Semantic roles & 50–950 ramp

primary
#281986
secondary
#A9BA41
accent
#EB3CD3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281986

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

Preview Lab → · Contrast checker → · Palette generator →

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