#281F57#281F57

#281F57 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.6% C 0.097 H 285.8°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#281F57
RGBrgb(40, 31, 87)
HSLhsl(250, 47%, 23%)
HSVhsv(250, 64%, 34%)
CMYKcmyk(54%, 64.4%, 0%, 65.9%)
CIE-LABlab(16.10, 21.13, -32.61)
CIE-LCHlch(16.10, 38.86, 302.94°)
OKLaboklab(28.55% 0.0265 -0.0933)
OKLCHoklch(28.55% 0.097 285.8)
XYZxyz(3.0848, 2.1191, 9.2615)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F57 #4E571F
analogous
#1F3257 #281F57 #441F57
triadic
#281F57 #57281F #1F5728
tetradic
#281F57 #571F32 #4E571F #1F5744
square
#281F57 #571F32 #4E571F #1F5744
split-complementary
#281F57 #57441F #32571F
monochromatic
#0A0817 #130F2A #281F57 #3D2F84 #513FB1

Accessibility & contrast

On white

14.75
#281F57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281F57
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F57#FFFFFF#000000##FFFFFF
##281F571.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002959
Deuteranopia (green-blind)
#002656
Tritanopia (blue-blind)
#172C37
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281f57;
/* rgb */ color: rgb(40, 31, 87);
/* oklch */ color: oklch(28.6% 0.097 285.8);
Tailwind
colors: {
  custom: {
    50: '#675b87',
    500: '#281f57',
    950: '#000000',
  },
}
SCSS
$custom: #281f57;
$custom-light: #675b87;
$custom-dark: #000000;
JSON
{
  "hex": "#281f57",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 87
  },
  "hsl": {
    "h": 249.643,
    "s": 47.458,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28552,
    "c": 0.097,
    "h": 285.8
  },
  "luminance": 0.02119
}

Semantic roles & 50–950 ramp

primary
#281F57
secondary
#818C46
accent
#D751C1
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #281F57

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

Preview Lab → · Contrast checker → · Palette generator →

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