#281979#281979

#281979 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.0% C 0.152 H 279.9°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#281979
RGBrgb(40, 25, 121)
HSLhsl(249, 66%, 29%)
HSVhsv(249, 79%, 47%)
CMYKcmyk(66.9%, 79.3%, 0%, 52.5%)
CIE-LABlab(18.04, 36.45, -51.74)
CIE-LCHlch(18.04, 63.29, 305.17°)
OKLaboklab(30.95% 0.0261 -0.1494)
OKLCHoklch(30.95% 0.152 279.9)
XYZxyz(4.6728, 2.5265, 18.3269)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281979 #6A7919
analogous
#193A79 #281979 #581979
triadic
#281979 #792819 #197928
tetradic
#281979 #79193A #6A7919 #197958
square
#281979 #79193A #6A7919 #197958
split-complementary
#281979 #795819 #3A7919
monochromatic
#080519 #170F46 #281979 #3923AC #5037D6

Accessibility & contrast

On white

13.95
#281979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#281979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281979
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281979#FFFFFF#000000##FFFFFF
##2819791.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281979;
/* rgb */ color: rgb(40, 25, 121);
/* oklch */ color: oklch(31.0% 0.152 279.9);
Tailwind
colors: {
  custom: {
    50: '#6e58a1',
    500: '#281979',
    950: '#000000',
  },
}
SCSS
$custom: #281979;
$custom-light: #6e58a1;
$custom-dark: #000000;
JSON
{
  "hex": "#281979",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 249.375,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30953,
    "c": 0.15162,
    "h": 279.9
  },
  "luminance": 0.02527
}

Semantic roles & 50–950 ramp

primary
#281979
secondary
#9DAE40
accent
#E93FCE
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #281979

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

Preview Lab → · Contrast checker → · Palette generator →

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