#281E8F#281E8F

#281E8F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.174 H 275.8°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#281E8F
RGBrgb(40, 30, 143)
HSLhsl(245, 65%, 34%)
HSVhsv(245, 79%, 56%)
CMYKcmyk(72%, 79%, 0%, 43.9%)
CIE-LABlab(21.44, 40.93, -60.00)
CIE-LCHlch(21.44, 72.63, 304.30°)
OKLaboklab(34.07% 0.0175 -0.1735)
OKLCHoklch(34.07% 0.174 275.8)
XYZxyz(6.2956, 3.3622, 26.2985)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E8F #858F1E
analogous
#1E4D8F #281E8F #611E8F
triadic
#281E8F #8F281E #1E8F28
tetradic
#281E8F #8F1E4D #858F1E #1E8F61
square
#281E8F #8F1E4D #858F1E #1E8F61
split-complementary
#281E8F #8F611E #4D8F1E
monochromatic
#0C092A #1A135C #281E8F #3629C2 #5A4EDA

Accessibility & contrast

On white

12.56
#281E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281E8F
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E8F#FFFFFF#000000##FFFFFF
##281E8F1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #281e8f;
/* rgb */ color: rgb(40, 30, 143);
/* oklch */ color: oklch(34.1% 0.174 275.8);
Tailwind
colors: {
  custom: {
    50: '#735cb1',
    500: '#281e8f',
    950: '#000000',
  },
}
SCSS
$custom: #281e8f;
$custom-light: #735cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#281e8f",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 245.31,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34066,
    "c": 0.17435,
    "h": 275.8
  },
  "luminance": 0.03363
}

Semantic roles & 50–950 ramp

primary
#281E8F
secondary
#B3BC4C
accent
#E840D9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #281E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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