#281978#281978

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

Color values

HEX#281978
RGBrgb(40, 25, 120)
HSLhsl(249, 66%, 28%)
HSVhsv(249, 79%, 47%)
CMYKcmyk(66.7%, 79.2%, 0%, 52.9%)
CIE-LABlab(17.93, 36.13, -51.28)
CIE-LCHlch(17.93, 62.73, 305.16°)
OKLaboklab(30.84% 0.0264 -0.148)
OKLCHoklch(30.84% 0.15 280.1)
XYZxyz(4.6118, 2.5021, 18.0056)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281978 #697819
analogous
#193978 #281978 #571978
triadic
#281978 #782819 #197828
tetradic
#281978 #781939 #697819 #197857
square
#281978 #781939 #697819 #197857
split-complementary
#281978 #785719 #397819
monochromatic
#080519 #170E45 #281978 #3924AB #4F36D5

Accessibility & contrast

On white

14.00
#281978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281978
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281978#FFFFFF#000000##FFFFFF
##2819781.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7B
Deuteranopia (green-blind)
#002876
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #281978;
/* rgb */ color: rgb(40, 25, 120);
/* oklch */ color: oklch(30.8% 0.150 280.1);
Tailwind
colors: {
  custom: {
    50: '#6e58a0',
    500: '#281978',
    950: '#000000',
  },
}
SCSS
$custom: #281978;
$custom-light: #6e58a0;
$custom-dark: #000000;
JSON
{
  "hex": "#281978",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 249.474,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30843,
    "c": 0.15035,
    "h": 280.1
  },
  "luminance": 0.02502
}

Semantic roles & 50–950 ramp

primary
#281978
secondary
#9CAD40
accent
#E83FCE
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #281978

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

Preview Lab → · Contrast checker → · Palette generator →

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