#281F60#281F60

#281F60 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.4% C 0.110 H 283.6°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#281F60
RGBrgb(40, 31, 96)
HSLhsl(248, 51%, 25%)
HSVhsv(248, 68%, 38%)
CMYKcmyk(58.3%, 67.7%, 0%, 62.4%)
CIE-LABlab(16.87, 24.28, -37.37)
CIE-LCHlch(16.87, 44.56, 303.01°)
OKLaboklab(29.36% 0.0259 -0.1073)
OKLCHoklch(29.36% 0.11 283.6)
XYZxyz(3.4757, 2.2754, 11.3201)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F60 #57601F
analogous
#1F3660 #281F60 #491F60
triadic
#281F60 #60281F #1F6028
tetradic
#281F60 #601F36 #57601F #1F6049
square
#281F60 #601F36 #57601F #1F6049
split-complementary
#281F60 #60491F #36601F
monochromatic
#0A0717 #151032 #281F60 #3B2E8E #4F3DBD

Accessibility & contrast

On white

14.43
#281F60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#281F60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F60
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F60#FFFFFF#000000##FFFFFF
##281F601.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C62
Deuteranopia (green-blind)
#00275F
Tritanopia (blue-blind)
#0F2F3C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #281f60;
/* rgb */ color: rgb(40, 31, 96);
/* oklch */ color: oklch(29.4% 0.110 283.6);
Tailwind
colors: {
  custom: {
    50: '#685b8e',
    500: '#281f60',
    950: '#000000',
  },
}
SCSS
$custom: #281f60;
$custom-light: #685b8e;
$custom-dark: #000000;
JSON
{
  "hex": "#281f60",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 96
  },
  "hsl": {
    "h": 248.308,
    "s": 51.181,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29359,
    "c": 0.11037,
    "h": 283.6
  },
  "luminance": 0.02276
}

Semantic roles & 50–950 ramp

primary
#281F60
secondary
#8A9546
accent
#DB4DC7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #281F60

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

Preview Lab → · Contrast checker → · Palette generator →

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