#281E95#281E95

#281E95 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.7% C 0.182 H 275.1°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#281E95
RGBrgb(40, 30, 149)
HSLhsl(245, 66%, 35%)
HSVhsv(245, 80%, 58%)
CMYKcmyk(73.2%, 79.9%, 0%, 41.6%)
CIE-LABlab(22.12, 42.87, -62.59)
CIE-LCHlch(22.12, 75.87, 304.41°)
OKLaboklab(34.74% 0.016 -0.181)
OKLCHoklch(34.74% 0.182 275.1)
XYZxyz(6.7624, 3.5489, 28.7566)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E95 #8B951E
analogous
#1E5095 #281E95 #631E95
triadic
#281E95 #95281E #1E9528
tetradic
#281E95 #951E50 #8B951E #1E9563
square
#281E95 #951E50 #8B951E #1E9563
split-complementary
#281E95 #95631E #50951E
monochromatic
#0D092F #1A1462 #281E95 #3628C8 #5D51DC

Accessibility & contrast

On white

12.28
#281E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#281E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E95
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E95#FFFFFF#000000##FFFFFF
##281E951.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281e95;
/* rgb */ color: rgb(40, 30, 149);
/* oklch */ color: oklch(34.7% 0.182 275.1);
Tailwind
colors: {
  custom: {
    50: '#745db5',
    500: '#281e95',
    950: '#000000',
  },
}
SCSS
$custom: #281e95;
$custom-light: #745db5;
$custom-dark: #000000;
JSON
{
  "hex": "#281e95",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 149
  },
  "hsl": {
    "h": 245.042,
    "s": 66.48,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34743,
    "c": 0.18171,
    "h": 275.1
  },
  "luminance": 0.0355
}

Semantic roles & 50–950 ramp

primary
#281E95
secondary
#B6BF50
accent
#E93EDB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281E95

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

Preview Lab → · Contrast checker → · Palette generator →

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