#281B72#281B72

#281B72 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.140 H 280.9°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#281B72
RGBrgb(40, 27, 114)
HSLhsl(249, 62%, 28%)
HSVhsv(249, 76%, 45%)
CMYKcmyk(64.9%, 76.3%, 0%, 55.3%)
CIE-LABlab(17.69, 33.00, -47.81)
CIE-LCHlch(17.69, 58.09, 304.61°)
OKLaboklab(30.48% 0.0265 -0.1379)
OKLCHoklch(30.48% 0.14 280.9)
XYZxyz(4.3033, 2.4496, 16.1624)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B72 #65721B
analogous
#1B3972 #281B72 #541B72
triadic
#281B72 #72281B #1B7228
tetradic
#281B72 #721B39 #65721B #1B7254
square
#281B72 #721B39 #65721B #1B7254
split-complementary
#281B72 #72541B #39721B
monochromatic
#090619 #170F41 #281B72 #3927A3 #4E38D0

Accessibility & contrast

On white

14.09
#281B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#281B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B72
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B72#FFFFFF#000000##FFFFFF
##281B721.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #281b72;
/* rgb */ color: rgb(40, 27, 114);
/* oklch */ color: oklch(30.5% 0.140 280.9);
Tailwind
colors: {
  custom: {
    50: '#6c599b',
    500: '#281b72',
    950: '#000000',
  },
}
SCSS
$custom: #281b72;
$custom-light: #6c599b;
$custom-dark: #000000;
JSON
{
  "hex": "#281b72",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 248.966,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30481,
    "c": 0.14042,
    "h": 280.9
  },
  "luminance": 0.0245
}

Semantic roles & 50–950 ramp

primary
#281B72
secondary
#98A742
accent
#E543CD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #281B72

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

Preview Lab → · Contrast checker → · Palette generator →

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