#281F56#281F56

#281F56 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.5% C 0.095 H 286.1°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#281F56
RGBrgb(40, 31, 86)
HSLhsl(250, 47%, 23%)
HSVhsv(250, 64%, 34%)
CMYKcmyk(53.5%, 64%, 0%, 66.3%)
CIE-LABlab(16.02, 20.78, -32.07)
CIE-LCHlch(16.02, 38.22, 302.94°)
OKLaboklab(28.47% 0.0265 -0.0917)
OKLCHoklch(28.47% 0.095 286.1)
XYZxyz(3.0443, 2.1028, 9.0478)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F56 #4D561F
analogous
#1F3156 #281F56 #431F56
triadic
#281F56 #56281F #1F5628
tetradic
#281F56 #561F31 #4D561F #1F5643
square
#281F56 #561F31 #4D561F #1F5643
split-complementary
#281F56 #56431F #31561F
monochromatic
#0A0816 #130F29 #281F56 #3D2F83 #523FB0

Accessibility & contrast

On white

14.78
#281F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#281F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F56
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F56#FFFFFF#000000##FFFFFF
##281F561.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#002655
Tritanopia (blue-blind)
#182C37
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281f56;
/* rgb */ color: rgb(40, 31, 86);
/* oklch */ color: oklch(28.5% 0.095 286.1);
Tailwind
colors: {
  custom: {
    50: '#665b86',
    500: '#281f56',
    950: '#000000',
  },
}
SCSS
$custom: #281f56;
$custom-light: #665b86;
$custom-dark: #000000;
JSON
{
  "hex": "#281f56",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 86
  },
  "hsl": {
    "h": 249.818,
    "s": 47.009,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28466,
    "c": 0.09548,
    "h": 286.1
  },
  "luminance": 0.02103
}

Semantic roles & 50–950 ramp

primary
#281F56
secondary
#808B46
accent
#D751C1
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #281F56

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

Preview Lab → · Contrast checker → · Palette generator →

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