#281D74#281D74

#281D74 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.141 H 280.0°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#281D74
RGBrgb(40, 29, 116)
HSLhsl(248, 60%, 28%)
HSVhsv(248, 75%, 45%)
CMYKcmyk(65.5%, 75%, 0%, 54.5%)
CIE-LABlab(18.32, 32.48, -48.06)
CIE-LCHlch(18.32, 58.00, 304.05°)
OKLaboklab(30.99% 0.0245 -0.1386)
OKLCHoklch(30.99% 0.141 280)
XYZxyz(4.4658, 2.5905, 16.7843)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D74 #69741D
analogous
#1D3D74 #281D74 #531D74
triadic
#281D74 #74281D #1D7428
tetradic
#281D74 #741D3D #69741D #1D7453
square
#281D74 #741D3D #69741D #1D7453
split-complementary
#281D74 #74531D #3D741D
monochromatic
#080618 #171143 #281D74 #3929A5 #4F3DCE

Accessibility & contrast

On white

13.83
#281D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#281D74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D74
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D74#FFFFFF#000000##FFFFFF
##281D741.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#003546
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #281d74;
/* rgb */ color: rgb(40, 29, 116);
/* oklch */ color: oklch(31.0% 0.141 280.0);
Tailwind
colors: {
  custom: {
    50: '#6d5a9d',
    500: '#281d74',
    950: '#000000',
  },
}
SCSS
$custom: #281d74;
$custom-light: #6d5a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#281d74",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 116
  },
  "hsl": {
    "h": 247.586,
    "s": 60,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30994,
    "c": 0.14079,
    "h": 280
  },
  "luminance": 0.02591
}

Semantic roles & 50–950 ramp

primary
#281D74
secondary
#9CA845
accent
#E345CF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #281D74

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

Preview Lab → · Contrast checker → · Palette generator →

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