#281E94#281E94

#281E94 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.180 H 275.2°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#281E94
RGBrgb(40, 30, 148)
HSLhsl(245, 66%, 35%)
HSVhsv(245, 80%, 58%)
CMYKcmyk(73%, 79.7%, 0%, 42%)
CIE-LABlab(22.01, 42.55, -62.16)
CIE-LCHlch(22.01, 75.33, 304.39°)
OKLaboklab(34.63% 0.0163 -0.1798)
OKLCHoklch(34.63% 0.181 275.2)
XYZxyz(6.6829, 3.5171, 28.3379)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E94 #8A941E
analogous
#1E4F94 #281E94 #631E94
triadic
#281E94 #94281E #1E9428
tetradic
#281E94 #941E4F #8A941E #1E9463
square
#281E94 #941E4F #8A941E #1E9463
split-complementary
#281E94 #94631E #4F941E
monochromatic
#0C092E #1A1461 #281E94 #3628C7 #5D51DC

Accessibility & contrast

On white

12.33
#281E94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281E94
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E94#FFFFFF#000000##FFFFFF
##281E941.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#002F92
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #281e94;
/* rgb */ color: rgb(40, 30, 148);
/* oklch */ color: oklch(34.6% 0.180 275.2);
Tailwind
colors: {
  custom: {
    50: '#745db5',
    500: '#281e94',
    950: '#000000',
  },
}
SCSS
$custom: #281e94;
$custom-light: #745db5;
$custom-dark: #000000;
JSON
{
  "hex": "#281e94",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 148
  },
  "hsl": {
    "h": 245.085,
    "s": 66.292,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34629,
    "c": 0.1805,
    "h": 275.2
  },
  "luminance": 0.03518
}

Semantic roles & 50–950 ramp

primary
#281E94
secondary
#B5BF4F
accent
#E93FDB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281E94

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

Preview Lab → · Contrast checker → · Palette generator →

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