#281F5B#281F5B

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

Color values

HEX#281F5B
RGBrgb(40, 31, 91)
HSLhsl(249, 49%, 24%)
HSVhsv(249, 66%, 36%)
CMYKcmyk(56%, 65.9%, 0%, 64.3%)
CIE-LABlab(16.44, 22.53, -34.75)
CIE-LCHlch(16.44, 41.41, 302.95°)
OKLaboklab(28.9% 0.0263 -0.0996)
OKLCHoklch(28.9% 0.103 284.8)
XYZxyz(3.2528, 2.1862, 10.1461)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F5B #525B1F
analogous
#1F345B #281F5B #461F5B
triadic
#281F5B #5B281F #1F5B28
tetradic
#281F5B #5B1F34 #525B1F #1F5B46
square
#281F5B #5B1F34 #525B1F #1F5B46
split-complementary
#281F5B #5B461F #345B1F
monochromatic
#0A0817 #140F2D #281F5B #3C2F89 #503EB6

Accessibility & contrast

On white

14.61
#281F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#281F5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F5B
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F5B#FFFFFF#000000##FFFFFF
##281F5B1.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5D
Deuteranopia (green-blind)
#00275A
Tritanopia (blue-blind)
#142D39
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #281f5b;
/* rgb */ color: rgb(40, 31, 91);
/* oklch */ color: oklch(28.9% 0.103 284.8);
Tailwind
colors: {
  custom: {
    50: '#675b8a',
    500: '#281f5b',
    950: '#000000',
  },
}
SCSS
$custom: #281f5b;
$custom-light: #675b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#281f5b",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 91
  },
  "hsl": {
    "h": 249,
    "s": 49.18,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28905,
    "c": 0.10301,
    "h": 284.8
  },
  "luminance": 0.02186
}

Semantic roles & 50–950 ramp

primary
#281F5B
secondary
#859046
accent
#D94FC4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #281F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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