#281781#281781

#281781 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.163 H 278.8°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#281781
RGBrgb(40, 23, 129)
HSLhsl(250, 70%, 30%)
HSVhsv(250, 82%, 51%)
CMYKcmyk(69%, 82.2%, 0%, 49.4%)
CIE-LABlab(18.58, 40.07, -55.95)
CIE-LCHlch(18.58, 68.82, 305.61°)
OKLaboklab(31.6% 0.0249 -0.1616)
OKLCHoklch(31.6% 0.163 278.8)
XYZxyz(5.1426, 2.6485, 21.0048)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281781 #708117
analogous
#173B81 #281781 #5D1781
triadic
#281781 #812817 #178128
tetradic
#281781 #81173B #708117 #17815D
square
#281781 #81173B #708117 #17815D
split-complementary
#281781 #815D17 #3B8117
monochromatic
#08051A #180E4D #281781 #3820B5 #5137DB

Accessibility & contrast

On white

13.73
#281781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#281781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281781
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281781#FFFFFF#000000##FFFFFF
##2817811.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#00297F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #281781;
/* rgb */ color: rgb(40, 23, 129);
/* oklch */ color: oklch(31.6% 0.163 278.8);
Tailwind
colors: {
  custom: {
    50: '#7058a7',
    500: '#281781',
    950: '#000000',
  },
}
SCSS
$custom: #281781;
$custom-light: #7058a7;
$custom-dark: #000000;
JSON
{
  "hex": "#281781",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 249.623,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31597,
    "c": 0.16349,
    "h": 278.8
  },
  "luminance": 0.02649
}

Semantic roles & 50–950 ramp

primary
#281781
secondary
#A2B53E
accent
#ED3BD0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #281781

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

Preview Lab → · Contrast checker → · Palette generator →

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