#281C96#281C96

#281C96 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.185 H 275.2°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#281C96
RGBrgb(40, 28, 150)
HSLhsl(246, 69%, 35%)
HSVhsv(246, 81%, 59%)
CMYKcmyk(73.3%, 81.3%, 0%, 41.2%)
CIE-LABlab(21.88, 44.21, -63.60)
CIE-LCHlch(21.88, 77.46, 304.80°)
OKLaboklab(34.61% 0.0166 -0.1839)
OKLCHoklch(34.61% 0.185 275.2)
XYZxyz(6.7935, 3.4830, 29.1625)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C96 #8A961C
analogous
#1C4D96 #281C96 #651C96
triadic
#281C96 #96281C #1C9628
tetradic
#281C96 #961C4D #8A961C #1C9665
square
#281C96 #961C4D #8A961C #1C9665
split-complementary
#281C96 #96651C #4D961C
monochromatic
#0C092F #1A1262 #281C96 #3626CA #5D4EDE

Accessibility & contrast

On white

12.38
#281C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#281C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C96
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C96#FFFFFF#000000##FFFFFF
##281C961.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#002F94
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #281c96;
/* rgb */ color: rgb(40, 28, 150);
/* oklch */ color: oklch(34.6% 0.185 275.2);
Tailwind
colors: {
  custom: {
    50: '#755cb6',
    500: '#281c96',
    950: '#000000',
  },
}
SCSS
$custom: #281c96;
$custom-light: #755cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#281c96",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 150
  },
  "hsl": {
    "h": 245.902,
    "s": 68.539,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34611,
    "c": 0.18466,
    "h": 275.2
  },
  "luminance": 0.03484
}

Semantic roles & 50–950 ramp

primary
#281C96
secondary
#B5C14D
accent
#EB3CDA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281C96

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

Preview Lab → · Contrast checker → · Palette generator →

#281C96 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva