#281996#281996

#281996 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.3% C 0.187 H 275.5°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#281996
RGBrgb(40, 25, 150)
HSLhsl(247, 71%, 34%)
HSVhsv(247, 83%, 59%)
CMYKcmyk(73.3%, 83.3%, 0%, 41.2%)
CIE-LABlab(21.39, 45.67, -64.43)
CIE-LCHlch(21.39, 78.97, 305.33°)
OKLaboklab(34.27% 0.0178 -0.1862)
OKLCHoklch(34.27% 0.187 275.5)
XYZxyz(6.7259, 3.3477, 29.1400)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281996 #879619
analogous
#194996 #281996 #671996
triadic
#281996 #962819 #199628
tetradic
#281996 #961949 #879619 #199667
square
#281996 #961949 #879619 #199667
split-complementary
#281996 #966719 #499619
monochromatic
#0C082D #1A1062 #281996 #3622CA #5B49E1

Accessibility & contrast

On white

12.58
#281996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#281996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281996
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281996#FFFFFF#000000##FFFFFF
##2819961.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003999
Deuteranopia (green-blind)
#002E94
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #281996;
/* rgb */ color: rgb(40, 25, 150);
/* oklch */ color: oklch(34.3% 0.187 275.5);
Tailwind
colors: {
  custom: {
    50: '#755ab6',
    500: '#281996',
    950: '#000000',
  },
}
SCSS
$custom: #281996;
$custom-light: #755ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#281996",
  "rgb": {
    "r": 40,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 247.2,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34267,
    "c": 0.1871,
    "h": 275.5
  },
  "luminance": 0.03348
}

Semantic roles & 50–950 ramp

primary
#281996
secondary
#B4C249
accent
#EE3AD9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281996

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

Preview Lab → · Contrast checker → · Palette generator →

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