#281C97#281C97

#281C97 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.7% C 0.186 H 275.0°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#281C97
RGBrgb(40, 28, 151)
HSLhsl(246, 69%, 35%)
HSVhsv(246, 81%, 59%)
CMYKcmyk(73.5%, 81.5%, 0%, 40.8%)
CIE-LABlab(22.00, 44.53, -64.03)
CIE-LCHlch(22.00, 77.99, 304.82°)
OKLaboklab(34.73% 0.0163 -0.1851)
OKLCHoklch(34.73% 0.186 275)
XYZxyz(6.8744, 3.5153, 29.5884)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C97 #8B971C
analogous
#1C4D97 #281C97 #661C97
triadic
#281C97 #97281C #1C9728
tetradic
#281C97 #971C4D #8B971C #1C9766
square
#281C97 #971C4D #8B971C #1C9766
split-complementary
#281C97 #97661C #4D971C
monochromatic
#0D0930 #1A1263 #281C97 #3626CB #5D4FDE

Accessibility & contrast

On white

12.33
#281C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281C97
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C97#FFFFFF#000000##FFFFFF
##281C971.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#002F95
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #281c97;
/* rgb */ color: rgb(40, 28, 151);
/* oklch */ color: oklch(34.7% 0.186 275.0);
Tailwind
colors: {
  custom: {
    50: '#755cb7',
    500: '#281c97',
    950: '#000000',
  },
}
SCSS
$custom: #281c97;
$custom-light: #755cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#281c97",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 151
  },
  "hsl": {
    "h": 245.854,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34726,
    "c": 0.18586,
    "h": 275
  },
  "luminance": 0.03516
}

Semantic roles & 50–950 ramp

primary
#281C97
secondary
#B6C14E
accent
#EC3CDA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281C97

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

Preview Lab → · Contrast checker → · Palette generator →

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