#281A7A#281A7A

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

Color values

HEX#281A7A
RGBrgb(40, 26, 122)
HSLhsl(249, 65%, 29%)
HSVhsv(249, 79%, 48%)
CMYKcmyk(67.2%, 78.7%, 0%, 52.2%)
CIE-LABlab(18.34, 36.23, -51.88)
CIE-LCHlch(18.34, 63.28, 304.93°)
OKLaboklab(31.2% 0.0252 -0.1498)
OKLCHoklch(31.2% 0.152 279.5)
XYZxyz(4.7562, 2.5947, 18.6588)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A7A #6C7A1A
analogous
#1A3C7A #281A7A #581A7A
triadic
#281A7A #7A281A #1A7A28
tetradic
#281A7A #7A1A3C #6C7A1A #1A7A58
square
#281A7A #7A1A3C #6C7A1A #1A7A58
split-complementary
#281A7A #7A581A #3C7A1A
monochromatic
#080519 #170F48 #281A7A #3925AC #5039D5

Accessibility & contrast

On white

13.82
#281A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281A7A
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A7A#FFFFFF#000000##FFFFFF
##281A7A1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281a7a;
/* rgb */ color: rgb(40, 26, 122);
/* oklch */ color: oklch(31.2% 0.152 279.5);
Tailwind
colors: {
  custom: {
    50: '#6e59a1',
    500: '#281a7a',
    950: '#000000',
  },
}
SCSS
$custom: #281a7a;
$custom-light: #6e59a1;
$custom-dark: #000000;
JSON
{
  "hex": "#281a7a",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 122
  },
  "hsl": {
    "h": 248.75,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31199,
    "c": 0.15187,
    "h": 279.5
  },
  "luminance": 0.02595
}

Semantic roles & 50–950 ramp

primary
#281A7A
secondary
#9EAE41
accent
#E840CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #281A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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