#281F5A#281F5A

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

Color values

HEX#281F5A
RGBrgb(40, 31, 90)
HSLhsl(249, 49%, 24%)
HSVhsv(249, 66%, 35%)
CMYKcmyk(55.6%, 65.6%, 0%, 64.7%)
CIE-LABlab(16.35, 22.18, -34.22)
CIE-LCHlch(16.35, 40.78, 302.95°)
OKLaboklab(28.82% 0.0264 -0.098)
OKLCHoklch(28.82% 0.102 285)
XYZxyz(3.2100, 2.1691, 9.9204)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F5A #515A1F
analogous
#1F335A #281F5A #451F5A
triadic
#281F5A #5A281F #1F5A28
tetradic
#281F5A #5A1F33 #515A1F #1F5A45
square
#281F5A #5A1F33 #515A1F #1F5A45
split-complementary
#281F5A #5A451F #335A1F
monochromatic
#0A0817 #140F2C #281F5A #3C2F88 #503EB5

Accessibility & contrast

On white

14.65
#281F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281F5A
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F5A#FFFFFF#000000##FFFFFF
##281F5A1.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5C
Deuteranopia (green-blind)
#002759
Tritanopia (blue-blind)
#152D39
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281f5a;
/* rgb */ color: rgb(40, 31, 90);
/* oklch */ color: oklch(28.8% 0.102 285.0);
Tailwind
colors: {
  custom: {
    50: '#675b89',
    500: '#281f5a',
    950: '#000000',
  },
}
SCSS
$custom: #281f5a;
$custom-light: #675b89;
$custom-dark: #000000;
JSON
{
  "hex": "#281f5a",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 90
  },
  "hsl": {
    "h": 249.153,
    "s": 48.76,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28816,
    "c": 0.10152,
    "h": 285
  },
  "luminance": 0.02169
}

Semantic roles & 50–950 ramp

primary
#281F5A
secondary
#848F46
accent
#D84FC3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040B
muted
#7A797C

Preview Lab

Preview with #281F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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