#281C98#281C98

#281C98 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.8% C 0.187 H 274.9°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#281C98
RGBrgb(40, 28, 152)
HSLhsl(246, 69%, 35%)
HSVhsv(246, 82%, 60%)
CMYKcmyk(73.7%, 81.6%, 0%, 40.4%)
CIE-LABlab(22.12, 44.85, -64.45)
CIE-LCHlch(22.12, 78.52, 304.83°)
OKLaboklab(34.84% 0.0161 -0.1864)
OKLCHoklch(34.84% 0.187 274.9)
XYZxyz(6.9560, 3.5479, 30.0179)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C98 #8C981C
analogous
#1C4E98 #281C98 #661C98
triadic
#281C98 #98281C #1C9828
tetradic
#281C98 #981C4E #8C981C #1C9866
square
#281C98 #981C4E #8C981C #1C9866
split-complementary
#281C98 #98661C #4E981C
monochromatic
#0D0931 #1A1264 #281C98 #3626CC #5E50DF

Accessibility & contrast

On white

12.28
#281C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#281C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C98
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C98#FFFFFF#000000##FFFFFF
##281C981.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9B
Deuteranopia (green-blind)
#002F96
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #281c98;
/* rgb */ color: rgb(40, 28, 152);
/* oklch */ color: oklch(34.8% 0.187 274.9);
Tailwind
colors: {
  custom: {
    50: '#755cb8',
    500: '#281c98',
    950: '#000000',
  },
}
SCSS
$custom: #281c98;
$custom-light: #755cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#281c98",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 152
  },
  "hsl": {
    "h": 245.806,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34842,
    "c": 0.18705,
    "h": 274.9
  },
  "luminance": 0.03549
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #281C98

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

Preview Lab → · Contrast checker → · Palette generator →

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