#281B79#281B79

#281B79 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.150 H 279.5°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#281B79
RGBrgb(40, 27, 121)
HSLhsl(248, 64%, 29%)
HSVhsv(248, 78%, 47%)
CMYKcmyk(66.9%, 77.7%, 0%, 52.5%)
CIE-LABlab(18.43, 35.33, -51.09)
CIE-LCHlch(18.43, 62.12, 304.67°)
OKLaboklab(31.23% 0.0248 -0.1475)
OKLCHoklch(31.23% 0.15 279.5)
XYZxyz(4.7171, 2.6151, 18.3416)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B79 #6C791B
analogous
#1B3D79 #281B79 #571B79
triadic
#281B79 #79281B #1B7928
tetradic
#281B79 #791B3D #6C791B #1B7957
square
#281B79 #791B3D #6C791B #1B7957
split-complementary
#281B79 #79571B #3D791B
monochromatic
#080619 #171047 #281B79 #3926AB #503BD3

Accessibility & contrast

On white

13.79
#281B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281B79
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B79#FFFFFF#000000##FFFFFF
##281B791.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002977
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #281b79;
/* rgb */ color: rgb(40, 27, 121);
/* oklch */ color: oklch(31.2% 0.150 279.5);
Tailwind
colors: {
  custom: {
    50: '#6e59a1',
    500: '#281b79',
    950: '#000000',
  },
}
SCSS
$custom: #281b79;
$custom-light: #6e59a1;
$custom-dark: #000000;
JSON
{
  "hex": "#281b79",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 248.298,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3123,
    "c": 0.14955,
    "h": 279.5
  },
  "luminance": 0.02615
}

Semantic roles & 50–950 ramp

primary
#281B79
secondary
#9EAD43
accent
#E741D0
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281B79

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

Preview Lab → · Contrast checker → · Palette generator →

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