#281786#281786

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

Color values

HEX#281786
RGBrgb(40, 23, 134)
HSLhsl(249, 71%, 31%)
HSVhsv(249, 83%, 53%)
CMYKcmyk(70.1%, 82.8%, 0%, 47.5%)
CIE-LABlab(19.16, 41.65, -58.14)
CIE-LCHlch(19.16, 71.52, 305.61°)
OKLaboklab(32.17% 0.0234 -0.168)
OKLCHoklch(32.17% 0.17 277.9)
XYZxyz(5.4832, 2.7847, 22.7982)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281786 #758617
analogous
#173D86 #281786 #5F1786
triadic
#281786 #862817 #178628
tetradic
#281786 #86173D #758617 #17865F
square
#281786 #86173D #758617 #17865F
split-complementary
#281786 #865F17 #3D8617
monochromatic
#09051E #180E52 #281786 #3820BA #533ADD

Accessibility & contrast

On white

13.49
#281786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#281786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281786
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281786#FFFFFF#000000##FFFFFF
##2817861.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002A84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #281786;
/* rgb */ color: rgb(40, 23, 134);
/* oklch */ color: oklch(32.2% 0.170 277.9);
Tailwind
colors: {
  custom: {
    50: '#7158aa',
    500: '#281786',
    950: '#000000',
  },
}
SCSS
$custom: #281786;
$custom-light: #7158aa;
$custom-dark: #000000;
JSON
{
  "hex": "#281786",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 249.189,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32173,
    "c": 0.16958,
    "h": 277.9
  },
  "luminance": 0.02785
}

Semantic roles & 50–950 ramp

primary
#281786
secondary
#A7BA3F
accent
#ED3AD2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #281786

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

Preview Lab → · Contrast checker → · Palette generator →

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