#281879#281879

#281879 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.153 H 280.1°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#281879
RGBrgb(40, 24, 121)
HSLhsl(250, 67%, 28%)
HSVhsv(250, 80%, 47%)
CMYKcmyk(66.9%, 80.2%, 0%, 52.5%)
CIE-LABlab(17.85, 37.00, -52.05)
CIE-LCHlch(17.85, 63.86, 305.40°)
OKLaboklab(30.82% 0.0267 -0.1503)
OKLCHoklch(30.82% 0.153 280.1)
XYZxyz(4.6518, 2.4845, 18.3199)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281879 #697918
analogous
#183879 #281879 #581879
triadic
#281879 #792818 #187928
tetradic
#281879 #791838 #697918 #187958
square
#281879 #791838 #697918 #187958
split-complementary
#281879 #795818 #387918
monochromatic
#08051A #170E46 #281879 #3922AC #4F35D7

Accessibility & contrast

On white

14.03
#281879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#281879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281879
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281879#FFFFFF#000000##FFFFFF
##2818791.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002877
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #281879;
/* rgb */ color: rgb(40, 24, 121);
/* oklch */ color: oklch(30.8% 0.153 280.1);
Tailwind
colors: {
  custom: {
    50: '#6e58a1',
    500: '#281879',
    950: '#000000',
  },
}
SCSS
$custom: #281879;
$custom-light: #6e58a1;
$custom-dark: #000000;
JSON
{
  "hex": "#281879",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 249.897,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3082,
    "c": 0.15262,
    "h": 280.1
  },
  "luminance": 0.02485
}

Semantic roles & 50–950 ramp

primary
#281879
secondary
#9CAE3F
accent
#EA3ECD
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #281879

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

Preview Lab → · Contrast checker → · Palette generator →

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