#281796#281796

#281796 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.1% C 0.189 H 275.6°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#281796
RGBrgb(40, 23, 150)
HSLhsl(248, 73%, 34%)
HSVhsv(248, 85%, 59%)
CMYKcmyk(73.3%, 84.7%, 0%, 41.2%)
CIE-LABlab(21.08, 46.58, -64.94)
CIE-LCHlch(21.08, 79.92, 305.65°)
OKLaboklab(34.05% 0.0185 -0.1877)
OKLCHoklch(34.05% 0.189 275.6)
XYZxyz(6.6847, 3.2653, 29.1262)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281796 #859617
analogous
#174696 #281796 #681796
triadic
#281796 #962817 #179628
tetradic
#281796 #961746 #859617 #179668
square
#281796 #961746 #859617 #179668
split-complementary
#281796 #966817 #469617
monochromatic
#0C072C #1A0F61 #281796 #361FCB #5A45E2

Accessibility & contrast

On white

12.70
#281796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#281796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281796
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281796#FFFFFF#000000##FFFFFF
##2817961.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003899
Deuteranopia (green-blind)
#002D94
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #281796;
/* rgb */ color: rgb(40, 23, 150);
/* oklch */ color: oklch(34.1% 0.189 275.6);
Tailwind
colors: {
  custom: {
    50: '#7559b6',
    500: '#281796',
    950: '#000000',
  },
}
SCSS
$custom: #281796;
$custom-light: #7559b6;
$custom-dark: #000000;
JSON
{
  "hex": "#281796",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 248.031,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34053,
    "c": 0.18862,
    "h": 275.6
  },
  "luminance": 0.03266
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #281796

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

Preview Lab → · Contrast checker → · Palette generator →

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