#281E5C#281E5C

#281E5C is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.8% C 0.106 H 285.0°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#281E5C
RGBrgb(40, 30, 92)
HSLhsl(250, 51%, 24%)
HSVhsv(250, 67%, 36%)
CMYKcmyk(56.5%, 67.4%, 0%, 63.9%)
CIE-LABlab(16.27, 23.55, -35.69)
CIE-LCHlch(16.27, 42.76, 303.42°)
OKLaboklab(28.81% 0.0274 -0.1024)
OKLCHoklch(28.81% 0.106 285)
XYZxyz(3.2705, 2.1522, 10.3662)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E5C #525C1E
analogous
#1E335C #281E5C #471E5C
triadic
#281E5C #5C281E #1E5C28
tetradic
#281E5C #5C1E33 #525C1E #1E5C47
square
#281E5C #5C1E33 #525C1E #1E5C47
split-complementary
#281E5C #5C471E #335C1E
monochromatic
#0A0817 #140F2E #281E5C #3C2D8A #503CB8

Accessibility & contrast

On white

14.68
#281E5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281E5C
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E5C#FFFFFF#000000##FFFFFF
##281E5C1.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5E
Deuteranopia (green-blind)
#00265B
Tritanopia (blue-blind)
#132D39
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281e5c;
/* rgb */ color: rgb(40, 30, 92);
/* oklch */ color: oklch(28.8% 0.106 285.0);
Tailwind
colors: {
  custom: {
    50: '#685a8b',
    500: '#281e5c',
    950: '#000000',
  },
}
SCSS
$custom: #281e5c;
$custom-light: #685a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#281e5c",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 92
  },
  "hsl": {
    "h": 249.677,
    "s": 50.82,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28808,
    "c": 0.10597,
    "h": 285
  },
  "luminance": 0.02152
}

Semantic roles & 50–950 ramp

primary
#281E5C
secondary
#859145
accent
#DA4DC4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #281E5C

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

Preview Lab → · Contrast checker → · Palette generator →

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