#281A7C#281A7C

#281A7C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.154 H 279.2°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#281A7C
RGBrgb(40, 26, 124)
HSLhsl(249, 65%, 29%)
HSVhsv(249, 79%, 49%)
CMYKcmyk(67.7%, 79%, 0%, 51.4%)
CIE-LABlab(18.56, 36.89, -52.79)
CIE-LCHlch(18.56, 64.40, 304.94°)
OKLaboklab(31.42% 0.0246 -0.1524)
OKLCHoklch(31.42% 0.154 279.2)
XYZxyz(4.8814, 2.6447, 19.3181)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A7C #6E7C1A
analogous
#1A3D7C #281A7C #591A7C
triadic
#281A7C #7C281A #1A7C28
tetradic
#281A7C #7C1A3D #6E7C1A #1A7C59
square
#281A7C #7C1A3D #6E7C1A #1A7C59
split-complementary
#281A7C #7C591A #3D7C1A
monochromatic
#080519 #180F49 #281A7C #3825AF #513BD6

Accessibility & contrast

On white

13.73
#281A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#281A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A7C
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A7C#FFFFFF#000000##FFFFFF
##281A7C1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#00297A
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #281a7c;
/* rgb */ color: rgb(40, 26, 124);
/* oklch */ color: oklch(31.4% 0.154 279.2);
Tailwind
colors: {
  custom: {
    50: '#6f59a3',
    500: '#281a7c',
    950: '#000000',
  },
}
SCSS
$custom: #281a7c;
$custom-light: #6f59a3;
$custom-dark: #000000;
JSON
{
  "hex": "#281a7c",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 248.571,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31419,
    "c": 0.15442,
    "h": 279.2
  },
  "luminance": 0.02645
}

Semantic roles & 50–950 ramp

primary
#281A7C
secondary
#A0B042
accent
#E840D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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