#281C7A#281C7A

#281C7A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.150 H 279.2°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#281C7A
RGBrgb(40, 28, 122)
HSLhsl(248, 63%, 29%)
HSVhsv(248, 77%, 48%)
CMYKcmyk(67.2%, 77%, 0%, 52.2%)
CIE-LABlab(18.74, 35.09, -51.22)
CIE-LCHlch(18.74, 62.09, 304.42°)
OKLaboklab(31.48% 0.0239 -0.1479)
OKLCHoklch(31.48% 0.15 279.2)
XYZxyz(4.8021, 2.6864, 18.6740)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C7A #6E7A1C
analogous
#1C3F7A #281C7A #571C7A
triadic
#281C7A #7A281C #1C7A28
tetradic
#281C7A #7A1C3F #6E7A1C #1C7A57
square
#281C7A #7A1C3F #6E7A1C #1C7A57
split-complementary
#281C7A #7A571C #3F7A1C
monochromatic
#080619 #181148 #281C7A #3827AC #513ED3

Accessibility & contrast

On white

13.66
#281C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#281C7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C7A
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C7A#FFFFFF#000000##FFFFFF
##281C7A1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #281c7a;
/* rgb */ color: rgb(40, 28, 122);
/* oklch */ color: oklch(31.5% 0.150 279.2);
Tailwind
colors: {
  custom: {
    50: '#6e5aa1',
    500: '#281c7a',
    950: '#000000',
  },
}
SCSS
$custom: #281c7a;
$custom-light: #6e5aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#281c7a",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 122
  },
  "hsl": {
    "h": 247.66,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31481,
    "c": 0.14978,
    "h": 279.2
  },
  "luminance": 0.02687
}

Semantic roles & 50–950 ramp

primary
#281C7A
secondary
#A0AE44
accent
#E642D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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