#281D94#281D94

#281D94 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.181 H 275.3°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#281D94
RGBrgb(40, 29, 148)
HSLhsl(246, 67%, 35%)
HSVhsv(246, 80%, 58%)
CMYKcmyk(73%, 80.4%, 0%, 42%)
CIE-LABlab(21.83, 43.07, -62.46)
CIE-LCHlch(21.83, 75.87, 304.59°)
OKLaboklab(34.5% 0.0167 -0.1806)
OKLCHoklch(34.5% 0.181 275.3)
XYZxyz(6.6580, 3.4673, 28.3296)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D94 #89941D
analogous
#1D4E94 #281D94 #631D94
triadic
#281D94 #94281D #1D9428
tetradic
#281D94 #941D4E #89941D #1D9463
square
#281D94 #941D4E #89941D #1D9463
split-complementary
#281D94 #94631D #4E941D
monochromatic
#0C092E #1A1361 #281D94 #3627C7 #5C4FDC

Accessibility & contrast

On white

12.40
#281D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#281D94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D94
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D94#FFFFFF#000000##FFFFFF
##281D941.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#002F92
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #281d94;
/* rgb */ color: rgb(40, 29, 148);
/* oklch */ color: oklch(34.5% 0.181 275.3);
Tailwind
colors: {
  custom: {
    50: '#745cb5',
    500: '#281d94',
    950: '#000000',
  },
}
SCSS
$custom: #281d94;
$custom-light: #745cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#281d94",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 148
  },
  "hsl": {
    "h": 245.546,
    "s": 67.232,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34503,
    "c": 0.18138,
    "h": 275.3
  },
  "luminance": 0.03468
}

Semantic roles & 50–950 ramp

primary
#281D94
secondary
#B5BF4E
accent
#EA3EDA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281D94

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

Preview Lab → · Contrast checker → · Palette generator →

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