#281B74#281B74

#281B74 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.143 H 280.5°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#281B74
RGBrgb(40, 27, 116)
HSLhsl(249, 62%, 28%)
HSVhsv(249, 77%, 45%)
CMYKcmyk(65.5%, 76.7%, 0%, 54.5%)
CIE-LABlab(17.90, 33.67, -48.76)
CIE-LCHlch(17.90, 59.25, 304.63°)
OKLaboklab(30.69% 0.026 -0.1407)
OKLCHoklch(30.69% 0.143 280.5)
XYZxyz(4.4184, 2.4956, 16.7685)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B74 #67741B
analogous
#1B3A74 #281B74 #541B74
triadic
#281B74 #74281B #1B7428
tetradic
#281B74 #741B3A #67741B #1B7454
square
#281B74 #741B3A #67741B #1B7454
split-complementary
#281B74 #74541B #3A741B
monochromatic
#090619 #170F42 #281B74 #3927A6 #4F39D1

Accessibility & contrast

On white

14.01
#281B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#281B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B74
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B74#FFFFFF#000000##FFFFFF
##281B741.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002872
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #281b74;
/* rgb */ color: rgb(40, 27, 116);
/* oklch */ color: oklch(30.7% 0.143 280.5);
Tailwind
colors: {
  custom: {
    50: '#6d599d',
    500: '#281b74',
    950: '#000000',
  },
}
SCSS
$custom: #281b74;
$custom-light: #6d599d;
$custom-dark: #000000;
JSON
{
  "hex": "#281b74",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 248.764,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30693,
    "c": 0.14305,
    "h": 280.5
  },
  "luminance": 0.02496
}

Semantic roles & 50–950 ramp

primary
#281B74
secondary
#9AA942
accent
#E542CE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #281B74

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

Preview Lab → · Contrast checker → · Palette generator →

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