#281E8E#281E8E

#281E8E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.173 H 275.9°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#281E8E
RGBrgb(40, 30, 142)
HSLhsl(245, 65%, 34%)
HSVhsv(245, 79%, 56%)
CMYKcmyk(71.8%, 78.9%, 0%, 44.3%)
CIE-LABlab(21.33, 40.60, -59.56)
CIE-LCHlch(21.33, 72.08, 304.28°)
OKLaboklab(33.95% 0.0178 -0.1722)
OKLCHoklch(33.95% 0.173 275.9)
XYZxyz(6.2202, 3.3321, 25.9013)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E8E #848E1E
analogous
#1E4C8E #281E8E #601E8E
triadic
#281E8E #8E281E #1E8E28
tetradic
#281E8E #8E1E4C #848E1E #1E8E60
square
#281E8E #8E1E4C #848E1E #1E8E60
split-complementary
#281E8E #8E601E #4C8E1E
monochromatic
#0C0929 #1A135B #281E8E #3629C1 #5A4DD9

Accessibility & contrast

On white

12.60
#281E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#281E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E8E
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E8E#FFFFFF#000000##FFFFFF
##281E8E1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281e8e;
/* rgb */ color: rgb(40, 30, 142);
/* oklch */ color: oklch(34.0% 0.173 275.9);
Tailwind
colors: {
  custom: {
    50: '#735cb0',
    500: '#281e8e',
    950: '#000000',
  },
}
SCSS
$custom: #281e8e;
$custom-light: #735cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#281e8e",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 142
  },
  "hsl": {
    "h": 245.357,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.33954,
    "c": 0.17312,
    "h": 275.9
  },
  "luminance": 0.03333
}

Semantic roles & 50–950 ramp

primary
#281E8E
secondary
#B2BC4C
accent
#E840D9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #281E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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