#281881#281881

#281881 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.163 H 278.6°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#281881
RGBrgb(40, 24, 129)
HSLhsl(249, 69%, 30%)
HSVhsv(249, 81%, 51%)
CMYKcmyk(69%, 81.4%, 0%, 49.4%)
CIE-LABlab(18.75, 39.57, -55.66)
CIE-LCHlch(18.75, 68.29, 305.41°)
OKLaboklab(31.72% 0.0244 -0.1607)
OKLCHoklch(31.72% 0.163 278.6)
XYZxyz(5.1629, 2.6889, 21.0116)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281881 #718118
analogous
#183C81 #281881 #5D1881
triadic
#281881 #812818 #188128
tetradic
#281881 #81183C #718118 #18815D
square
#281881 #81183C #718118 #18815D
split-complementary
#281881 #815D18 #3C8118
monochromatic
#08051A #180E4D #281881 #3822B5 #5239DA

Accessibility & contrast

On white

13.66
#281881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281881
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281881#FFFFFF#000000##FFFFFF
##2818811.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#00297F
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #281881;
/* rgb */ color: rgb(40, 24, 129);
/* oklch */ color: oklch(31.7% 0.163 278.6);
Tailwind
colors: {
  custom: {
    50: '#7058a7',
    500: '#281881',
    950: '#000000',
  },
}
SCSS
$custom: #281881;
$custom-light: #7058a7;
$custom-dark: #000000;
JSON
{
  "hex": "#281881",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 249.143,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.31719,
    "c": 0.16259,
    "h": 278.6
  },
  "luminance": 0.02689
}

Semantic roles & 50–950 ramp

primary
#281881
secondary
#A3B540
accent
#EB3CD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #281881

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

Preview Lab → · Contrast checker → · Palette generator →

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