#281B95#281B95

#281B95 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.4% C 0.184 H 275.4°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#281B95
RGBrgb(40, 27, 149)
HSLhsl(246, 69%, 35%)
HSVhsv(246, 82%, 58%)
CMYKcmyk(73.2%, 81.9%, 0%, 41.6%)
CIE-LABlab(21.60, 44.39, -63.46)
CIE-LCHlch(21.60, 77.45, 304.97°)
OKLaboklab(34.38% 0.0173 -0.1835)
OKLCHoklch(34.38% 0.184 275.4)
XYZxyz(6.6900, 3.4043, 28.7325)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B95 #88951B
analogous
#1B4B95 #281B95 #651B95
triadic
#281B95 #95281B #1B9528
tetradic
#281B95 #951B4B #88951B #1B9565
square
#281B95 #951B4B #88951B #1B9565
split-complementary
#281B95 #95651B #4B951B
monochromatic
#0C082D #1A1261 #281B95 #3624C9 #5B4CDF

Accessibility & contrast

On white

12.49
#281B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#281B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B95
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B95#FFFFFF#000000##FFFFFF
##281B951.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#002E93
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #281b95;
/* rgb */ color: rgb(40, 27, 149);
/* oklch */ color: oklch(34.4% 0.184 275.4);
Tailwind
colors: {
  custom: {
    50: '#755bb5',
    500: '#281b95',
    950: '#000000',
  },
}
SCSS
$custom: #281b95;
$custom-light: #755bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#281b95",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 149
  },
  "hsl": {
    "h": 246.393,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34377,
    "c": 0.1843,
    "h": 275.4
  },
  "luminance": 0.03405
}

Semantic roles & 50–950 ramp

primary
#281B95
secondary
#B4C14B
accent
#EC3CD9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281B95

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

Preview Lab → · Contrast checker → · Palette generator →

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