#281A8C#281A8C

#281A8C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.2% C 0.174 H 276.7°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#281A8C
RGBrgb(40, 26, 140)
HSLhsl(247, 69%, 33%)
HSVhsv(247, 81%, 55%)
CMYKcmyk(71.4%, 81.4%, 0%, 45.1%)
CIE-LABlab(20.37, 42.05, -59.90)
CIE-LCHlch(20.37, 73.18, 305.07°)
OKLaboklab(33.22% 0.0202 -0.1731)
OKLCHoklch(33.22% 0.174 276.7)
XYZxyz(5.9765, 3.0828, 25.0859)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A8C #7E8C1A
analogous
#1A458C #281A8C #611A8C
triadic
#281A8C #8C281A #1A8C28
tetradic
#281A8C #8C1A45 #7E8C1A #1A8C61
square
#281A8C #8C1A45 #7E8C1A #1A8C61
split-complementary
#281A8C #8C611A #458C1A
monochromatic
#0B0725 #191058 #281A8C #3724C0 #5744DC

Accessibility & contrast

On white

12.99
#281A8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#281A8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A8C
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A8C#FFFFFF#000000##FFFFFF
##281A8C1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368F
Deuteranopia (green-blind)
#002C8A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #281a8c;
/* rgb */ color: rgb(40, 26, 140);
/* oklch */ color: oklch(33.2% 0.174 276.7);
Tailwind
colors: {
  custom: {
    50: '#735aaf',
    500: '#281a8c',
    950: '#000000',
  },
}
SCSS
$custom: #281a8c;
$custom-light: #735aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#281a8c",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 140
  },
  "hsl": {
    "h": 247.368,
    "s": 68.675,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3322,
    "c": 0.17429,
    "h": 276.7
  },
  "luminance": 0.03083
}

Semantic roles & 50–950 ramp

primary
#281A8C
secondary
#AFBE44
accent
#EC3CD6
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #281A8C

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

Preview Lab → · Contrast checker → · Palette generator →

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