#281794#281794

#281794 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.8% C 0.186 H 275.9°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#281794
RGBrgb(40, 23, 148)
HSLhsl(248, 73%, 34%)
HSVhsv(248, 84%, 58%)
CMYKcmyk(73%, 84.5%, 0%, 42%)
CIE-LABlab(20.83, 45.97, -64.11)
CIE-LCHlch(20.83, 78.89, 305.64°)
OKLaboklab(33.82% 0.0191 -0.1853)
OKLCHoklch(33.82% 0.186 275.9)
XYZxyz(6.5250, 3.2014, 28.2853)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281794 #839417
analogous
#174494 #281794 #661794
triadic
#281794 #942817 #179428
tetradic
#281794 #941744 #839417 #179466
square
#281794 #941744 #839417 #179466
split-complementary
#281794 #946617 #449417
monochromatic
#0B072A #1A0F5F #281794 #361FC9 #5944E2

Accessibility & contrast

On white

12.80
#281794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#281794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281794
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281794#FFFFFF#000000##FFFFFF
##2817941.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281794;
/* rgb */ color: rgb(40, 23, 148);
/* oklch */ color: oklch(33.8% 0.186 275.9);
Tailwind
colors: {
  custom: {
    50: '#7559b5',
    500: '#281794',
    950: '#000000',
  },
}
SCSS
$custom: #281794;
$custom-light: #7559b5;
$custom-dark: #000000;
JSON
{
  "hex": "#281794",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 148
  },
  "hsl": {
    "h": 248.16,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33815,
    "c": 0.18627,
    "h": 275.9
  },
  "luminance": 0.03202
}

Semantic roles & 50–950 ramp

primary
#281794
secondary
#B1C344
accent
#F038D7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281794

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

Preview Lab → · Contrast checker → · Palette generator →

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