#281B98#281B98

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

Color values

HEX#281B98
RGBrgb(40, 27, 152)
HSLhsl(246, 70%, 35%)
HSVhsv(246, 82%, 60%)
CMYKcmyk(73.7%, 82.2%, 0%, 40.4%)
CIE-LABlab(21.95, 45.33, -64.73)
CIE-LCHlch(21.95, 79.02, 305.01°)
OKLaboklab(34.73% 0.0165 -0.1871)
OKLCHoklch(34.73% 0.188 275)
XYZxyz(6.9326, 3.5013, 30.0101)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B98 #8B981B
analogous
#1B4C98 #281B98 #661B98
triadic
#281B98 #98281B #1B9828
tetradic
#281B98 #981B4C #8B981B #1B9866
square
#281B98 #981B4C #8B981B #1B9866
split-complementary
#281B98 #98661B #4C981B
monochromatic
#0D0930 #1A1264 #281B98 #3624CC #5D4EE0

Accessibility & contrast

On white

12.35
#281B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281B98
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B98#FFFFFF#000000##FFFFFF
##281B981.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281b98;
/* rgb */ color: rgb(40, 27, 152);
/* oklch */ color: oklch(34.7% 0.188 275.0);
Tailwind
colors: {
  custom: {
    50: '#755bb8',
    500: '#281b98',
    950: '#000000',
  },
}
SCSS
$custom: #281b98;
$custom-light: #755bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#281b98",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 152
  },
  "hsl": {
    "h": 246.24,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34725,
    "c": 0.18787,
    "h": 275
  },
  "luminance": 0.03502
}

Semantic roles & 50–950 ramp

primary
#281B98
secondary
#B6C24D
accent
#ED3BDA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281B98

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

Preview Lab → · Contrast checker → · Palette generator →

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