#281E8D#281E8D

#281E8D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.172 H 276.0°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#281E8D
RGBrgb(40, 30, 141)
HSLhsl(245, 65%, 34%)
HSVhsv(245, 79%, 55%)
CMYKcmyk(71.6%, 78.7%, 0%, 44.7%)
CIE-LABlab(21.22, 40.27, -59.13)
CIE-LCHlch(21.22, 71.54, 304.26°)
OKLaboklab(33.84% 0.018 -0.1709)
OKLCHoklch(33.84% 0.172 276)
XYZxyz(6.1455, 3.3022, 25.5077)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E8D #838D1E
analogous
#1E4B8D #281E8D #5F1E8D
triadic
#281E8D #8D281E #1E8D28
tetradic
#281E8D #8D1E4B #838D1E #1E8D5F
square
#281E8D #8D1E4B #838D1E #1E8D5F
split-complementary
#281E8D #8D5F1E #4B8D1E
monochromatic
#0B0928 #1A135B #281E8D #3629BF #594CD9

Accessibility & contrast

On white

12.65
#281E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#281E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E8D
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E8D#FFFFFF#000000##FFFFFF
##281E8D1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#002E8B
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #281e8d;
/* rgb */ color: rgb(40, 30, 141);
/* oklch */ color: oklch(33.8% 0.172 276.0);
Tailwind
colors: {
  custom: {
    50: '#725cb0',
    500: '#281e8d',
    950: '#000000',
  },
}
SCSS
$custom: #281e8d;
$custom-light: #725cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#281e8d",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 245.405,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33842,
    "c": 0.17188,
    "h": 276
  },
  "luminance": 0.03303
}

Semantic roles & 50–950 ramp

primary
#281E8D
secondary
#B1BC4B
accent
#E840D9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #281E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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