#281792#281792

#281792 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.6% C 0.184 H 276.1°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#281792
RGBrgb(40, 23, 146)
HSLhsl(248, 73%, 33%)
HSVhsv(248, 84%, 57%)
CMYKcmyk(72.6%, 84.2%, 0%, 42.7%)
CIE-LABlab(20.59, 45.36, -63.27)
CIE-LCHlch(20.59, 77.85, 305.64°)
OKLaboklab(33.58% 0.0197 -0.1829)
OKLCHoklch(33.58% 0.184 276.1)
XYZxyz(6.3681, 3.1386, 27.4588)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281792 #819217
analogous
#174392 #281792 #651792
triadic
#281792 #922817 #179228
tetradic
#281792 #921743 #819217 #179265
square
#281792 #921743 #819217 #179265
split-complementary
#281792 #926517 #439217
monochromatic
#0B0628 #1A0F5D #281792 #361FC7 #5842E1

Accessibility & contrast

On white

12.90
#281792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#281792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281792
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281792#FFFFFF#000000##FFFFFF
##2817921.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003795
Deuteranopia (green-blind)
#002C90
Tritanopia (blue-blind)
#003E56
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #281792;
/* rgb */ color: rgb(40, 23, 146);
/* oklch */ color: oklch(33.6% 0.184 276.1);
Tailwind
colors: {
  custom: {
    50: '#7459b3',
    500: '#281792',
    950: '#000000',
  },
}
SCSS
$custom: #281792;
$custom-light: #7459b3;
$custom-dark: #000000;
JSON
{
  "hex": "#281792",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 146
  },
  "hsl": {
    "h": 248.293,
    "s": 72.781,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33578,
    "c": 0.18392,
    "h": 276.1
  },
  "luminance": 0.03139
}

Semantic roles & 50–950 ramp

primary
#281792
secondary
#B0C243
accent
#EF38D6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281792

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

Preview Lab → · Contrast checker → · Palette generator →

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