#281E9E#281E9E

#281E9E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.8% C 0.193 H 274.1°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#281E9E
RGBrgb(40, 30, 158)
HSLhsl(245, 68%, 37%)
HSVhsv(245, 81%, 62%)
CMYKcmyk(74.7%, 81%, 0%, 38%)
CIE-LABlab(23.16, 45.75, -66.40)
CIE-LCHlch(23.16, 80.63, 304.57°)
OKLaboklab(35.77% 0.0137 -0.192)
OKLCHoklch(35.77% 0.193 274.1)
XYZxyz(7.5089, 3.8475, 32.6880)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E9E #949E1E
analogous
#1E549E #281E9E #681E9E
triadic
#281E9E #9E281E #1E9E28
tetradic
#281E9E #9E1E54 #949E1E #1E9E68
square
#281E9E #9E1E54 #949E1E #1E9E68
split-complementary
#281E9E #9E681E #549E1E
monochromatic
#0E0A37 #1B146B #281E9E #3528D1 #6257DF

Accessibility & contrast

On white

11.87
#281E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#281E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E9E
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E9E#FFFFFF#000000##FFFFFF
##281E9E1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00319C
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #281e9e;
/* rgb */ color: rgb(40, 30, 158);
/* oklch */ color: oklch(35.8% 0.193 274.1);
Tailwind
colors: {
  custom: {
    50: '#765dbc',
    500: '#281e9e',
    950: '#000000',
  },
}
SCSS
$custom: #281e9e;
$custom-light: #765dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#281e9e",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 158
  },
  "hsl": {
    "h": 244.688,
    "s": 68.085,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35772,
    "c": 0.19254,
    "h": 274.1
  },
  "luminance": 0.03848
}

Semantic roles & 50–950 ramp

primary
#281E9E
secondary
#BAC355
accent
#EB3DDD
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #281E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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