#281981#281981

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

Color values

HEX#281981
RGBrgb(40, 25, 129)
HSLhsl(249, 68%, 30%)
HSVhsv(249, 81%, 51%)
CMYKcmyk(69%, 80.6%, 0%, 49.4%)
CIE-LABlab(18.93, 39.05, -55.36)
CIE-LCHlch(18.93, 67.74, 305.20°)
OKLaboklab(31.85% 0.0239 -0.1599)
OKLCHoklch(31.85% 0.162 278.5)
XYZxyz(5.1839, 2.7309, 21.0186)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281981 #728119
analogous
#193E81 #281981 #5C1981
triadic
#281981 #812819 #198128
tetradic
#281981 #81193E #728119 #19815C
square
#281981 #81193E #728119 #19815C
split-complementary
#281981 #815C19 #3E8119
monochromatic
#08051A #180F4E #281981 #3823B4 #523BD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##281981#FFFFFF#000000##FFFFFF
##2819811.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)
#003284
Deuteranopia (green-blind)
#002A7F
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #281981;
/* rgb */ color: rgb(40, 25, 129);
/* oklch */ color: oklch(31.8% 0.162 278.5);
Tailwind
colors: {
  custom: {
    50: '#7059a7',
    500: '#281981',
    950: '#000000',
  },
}
SCSS
$custom: #281981;
$custom-light: #7059a7;
$custom-dark: #000000;
JSON
{
  "hex": "#281981",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 248.654,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31845,
    "c": 0.16167,
    "h": 278.5
  },
  "luminance": 0.02731
}

Semantic roles & 50–950 ramp

primary
#281981
secondary
#A4B541
accent
#EA3DD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281981

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

Preview Lab → · Contrast checker → · Palette generator →

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