#281793#281793

#281793 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.7% C 0.185 H 276.0°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#281793
RGBrgb(40, 23, 147)
HSLhsl(248, 73%, 33%)
HSVhsv(248, 84%, 58%)
CMYKcmyk(72.8%, 84.4%, 0%, 42.4%)
CIE-LABlab(20.71, 45.66, -63.69)
CIE-LCHlch(20.71, 78.37, 305.64°)
OKLaboklab(33.7% 0.0194 -0.1841)
OKLCHoklch(33.7% 0.185 276)
XYZxyz(6.4462, 3.1699, 27.8702)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281793 #829317
analogous
#174493 #281793 #661793
triadic
#281793 #932817 #179328
tetradic
#281793 #931744 #829317 #179366
square
#281793 #931744 #829317 #179366
split-complementary
#281793 #936617 #449317
monochromatic
#0B0629 #1A0F5E #281793 #361FC8 #5943E2

Accessibility & contrast

On white

12.85
#281793 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281793
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281793#FFFFFF#000000##FFFFFF
##2817931.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003796
Deuteranopia (green-blind)
#002C91
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #281793;
/* rgb */ color: rgb(40, 23, 147);
/* oklch */ color: oklch(33.7% 0.185 276.0);
Tailwind
colors: {
  custom: {
    50: '#7459b4',
    500: '#281793',
    950: '#000000',
  },
}
SCSS
$custom: #281793;
$custom-light: #7459b4;
$custom-dark: #000000;
JSON
{
  "hex": "#281793",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 147
  },
  "hsl": {
    "h": 248.226,
    "s": 72.941,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33697,
    "c": 0.1851,
    "h": 276
  },
  "luminance": 0.0317
}

Semantic roles & 50–950 ramp

primary
#281793
secondary
#B1C244
accent
#F038D6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281793

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

Preview Lab → · Contrast checker → · Palette generator →

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