#281E97#281E97

#281E97 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.184 H 274.8°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#281E97
RGBrgb(40, 30, 151)
HSLhsl(245, 67%, 35%)
HSVhsv(245, 80%, 59%)
CMYKcmyk(73.5%, 80.1%, 0%, 40.8%)
CIE-LABlab(22.35, 43.52, -63.45)
CIE-LCHlch(22.35, 76.94, 304.44°)
OKLaboklab(34.97% 0.0155 -0.1835)
OKLCHoklch(34.97% 0.184 274.8)
XYZxyz(6.9234, 3.6133, 29.6047)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E97 #8D971E
analogous
#1E5097 #281E97 #651E97
triadic
#281E97 #97281E #1E9728
tetradic
#281E97 #971E50 #8D971E #1E9765
square
#281E97 #971E50 #8D971E #1E9765
split-complementary
#281E97 #97651E #50971E
monochromatic
#0D0A31 #1A1464 #281E97 #3628CA #5E53DD

Accessibility & contrast

On white

12.19
#281E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#281E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E97
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E97#FFFFFF#000000##FFFFFF
##281E971.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003095
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #281e97;
/* rgb */ color: rgb(40, 30, 151);
/* oklch */ color: oklch(35.0% 0.184 274.8);
Tailwind
colors: {
  custom: {
    50: '#755db7',
    500: '#281e97',
    950: '#000000',
  },
}
SCSS
$custom: #281e97;
$custom-light: #755db7;
$custom-dark: #000000;
JSON
{
  "hex": "#281e97",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 244.959,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.3497,
    "c": 0.18415,
    "h": 274.8
  },
  "luminance": 0.03614
}

Semantic roles & 50–950 ramp

primary
#281E97
secondary
#B7C051
accent
#EA3EDC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281E97

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

Preview Lab → · Contrast checker → · Palette generator →

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