#281784#281784

#281784 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.167 H 278.3°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#281784
RGBrgb(40, 23, 132)
HSLhsl(249, 70%, 30%)
HSVhsv(249, 83%, 52%)
CMYKcmyk(69.7%, 82.6%, 0%, 48.2%)
CIE-LABlab(18.93, 41.02, -57.27)
CIE-LCHlch(18.93, 70.44, 305.61°)
OKLaboklab(31.94% 0.024 -0.1654)
OKLCHoklch(31.94% 0.167 278.3)
XYZxyz(5.3450, 2.7294, 22.0705)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281784 #738417
analogous
#173C84 #281784 #5E1784
triadic
#281784 #842817 #178428
tetradic
#281784 #84173C #738417 #17845E
square
#281784 #84173C #738417 #17845E
split-complementary
#281784 #845E17 #3C8417
monochromatic
#08051C #180E50 #281784 #3820B8 #5239DC

Accessibility & contrast

On white

13.58
#281784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281784
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281784#FFFFFF#000000##FFFFFF
##2817841.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003287
Deuteranopia (green-blind)
#002982
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #281784;
/* rgb */ color: rgb(40, 23, 132);
/* oklch */ color: oklch(31.9% 0.167 278.3);
Tailwind
colors: {
  custom: {
    50: '#7158a9',
    500: '#281784',
    950: '#000000',
  },
}
SCSS
$custom: #281784;
$custom-light: #7158a9;
$custom-dark: #000000;
JSON
{
  "hex": "#281784",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 249.358,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31942,
    "c": 0.16716,
    "h": 278.3
  },
  "luminance": 0.0273
}

Semantic roles & 50–950 ramp

primary
#281784
secondary
#A5B83F
accent
#ED3BD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #281784

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

Preview Lab → · Contrast checker → · Palette generator →

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