#281E93#281E93

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

Color values

HEX#281E93
RGBrgb(40, 30, 147)
HSLhsl(245, 66%, 35%)
HSVhsv(245, 80%, 58%)
CMYKcmyk(72.8%, 79.6%, 0%, 42.4%)
CIE-LABlab(21.89, 42.23, -61.73)
CIE-LCHlch(21.89, 74.79, 304.37°)
OKLaboklab(34.52% 0.0165 -0.1785)
OKLCHoklch(34.52% 0.179 275.3)
XYZxyz(6.6041, 3.4856, 27.9229)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E93 #89931E
analogous
#1E4F93 #281E93 #621E93
triadic
#281E93 #93281E #1E9328
tetradic
#281E93 #931E4F #89931E #1E9362
square
#281E93 #931E4F #89931E #1E9362
split-complementary
#281E93 #93621E #4F931E
monochromatic
#0C092D #1A1460 #281E93 #3628C6 #5C50DB

Accessibility & contrast

On white

12.37
#281E93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281E93
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E93#FFFFFF#000000##FFFFFF
##281E931.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281e93;
/* rgb */ color: rgb(40, 30, 147);
/* oklch */ color: oklch(34.5% 0.179 275.3);
Tailwind
colors: {
  custom: {
    50: '#745db4',
    500: '#281e93',
    950: '#000000',
  },
}
SCSS
$custom: #281e93;
$custom-light: #745db4;
$custom-dark: #000000;
JSON
{
  "hex": "#281e93",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 147
  },
  "hsl": {
    "h": 245.128,
    "s": 66.102,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34516,
    "c": 0.17927,
    "h": 275.3
  },
  "luminance": 0.03486
}

Semantic roles & 50–950 ramp

primary
#281E93
secondary
#B5BE4F
accent
#E93FDA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281E93

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

Preview Lab → · Contrast checker → · Palette generator →

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