#281684#281684

#281684 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.168 H 278.4°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#281684
RGBrgb(40, 22, 132)
HSLhsl(250, 71%, 30%)
HSVhsv(250, 83%, 52%)
CMYKcmyk(69.7%, 83.3%, 0%, 48.2%)
CIE-LABlab(18.76, 41.51, -57.54)
CIE-LCHlch(18.76, 70.95, 305.80°)
OKLaboklab(31.83% 0.0245 -0.1662)
OKLCHoklch(31.83% 0.168 278.4)
XYZxyz(5.3255, 2.6904, 22.0640)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281684 #728416
analogous
#163B84 #281684 #5F1684
triadic
#281684 #842816 #168428
tetradic
#281684 #84163B #728416 #16845F
square
#281684 #84163B #728416 #16845F
split-complementary
#281684 #845F16 #3B8416
monochromatic
#08051B #180D50 #281684 #381FB8 #5237DE

Accessibility & contrast

On white

13.65
#281684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#281684 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281684
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281684#FFFFFF#000000##FFFFFF
##2816841.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281684;
/* rgb */ color: rgb(40, 22, 132);
/* oklch */ color: oklch(31.8% 0.168 278.4);
Tailwind
colors: {
  custom: {
    50: '#7157a9',
    500: '#281684',
    950: '#000000',
  },
}
SCSS
$custom: #281684;
$custom-light: #7157a9;
$custom-dark: #000000;
JSON
{
  "hex": "#281684",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 132
  },
  "hsl": {
    "h": 249.818,
    "s": 71.429,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31826,
    "c": 0.168,
    "h": 278.4
  },
  "luminance": 0.02691
}

Semantic roles & 50–950 ramp

primary
#281684
secondary
#A4B83D
accent
#EE3AD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #281684

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

Preview Lab → · Contrast checker → · Palette generator →

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