#281E5D#281E5D

#281E5D is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.9% C 0.107 H 284.7°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#281E5D
RGBrgb(40, 30, 93)
HSLhsl(250, 51%, 24%)
HSVhsv(250, 68%, 36%)
CMYKcmyk(57%, 67.7%, 0%, 63.5%)
CIE-LABlab(16.35, 23.90, -36.22)
CIE-LCHlch(16.35, 43.39, 303.42°)
OKLaboklab(28.9% 0.0273 -0.1039)
OKLCHoklch(28.9% 0.107 284.7)
XYZxyz(3.3145, 2.1698, 10.5980)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E5D #535D1E
analogous
#1E345D #281E5D #481E5D
triadic
#281E5D #5D281E #1E5D28
tetradic
#281E5D #5D1E34 #535D1E #1E5D48
square
#281E5D #5D1E34 #535D1E #1E5D48
split-complementary
#281E5D #5D481E #345D1E
monochromatic
#0A0717 #140F2F #281E5D #3C2D8B #503CBA

Accessibility & contrast

On white

14.64
#281E5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#281E5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E5D
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E5D#FFFFFF#000000##FFFFFF
##281E5D1.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5F
Deuteranopia (green-blind)
#00275C
Tritanopia (blue-blind)
#122D3A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #281e5d;
/* rgb */ color: rgb(40, 30, 93);
/* oklch */ color: oklch(28.9% 0.107 284.7);
Tailwind
colors: {
  custom: {
    50: '#685a8b',
    500: '#281e5d',
    950: '#000000',
  },
}
SCSS
$custom: #281e5d;
$custom-light: #685a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#281e5d",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 93
  },
  "hsl": {
    "h": 249.524,
    "s": 51.22,
    "l": 24.118
  },
  "oklch": {
    "l": 0.289,
    "c": 0.10743,
    "h": 284.7
  },
  "luminance": 0.0217
}

Semantic roles & 50–950 ramp

primary
#281E5D
secondary
#869245
accent
#DB4DC4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #281E5D

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

Preview Lab → · Contrast checker → · Palette generator →

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