#281BA7#281BA7

#281BA7 is a dark, highly saturated blue. Relative luminance 0.040; OKLCH L 36.5% C 0.205 H 273.4°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#281BA7
RGBrgb(40, 27, 167)
HSLhsl(246, 72%, 38%)
HSVhsv(246, 84%, 65%)
CMYKcmyk(76%, 83.8%, 0%, 34.5%)
CIE-LABlab(23.75, 49.95, -70.90)
CIE-LCHlch(23.75, 86.72, 305.17°)
OKLaboklab(36.49% 0.0123 -0.205)
OKLCHoklch(36.49% 0.205 273.4)
XYZxyz(8.2397, 4.0241, 36.8942)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281BA7 #9AA71B
analogous
#1B54A7 #281BA7 #6E1BA7
triadic
#281BA7 #A7281B #1BA728
tetradic
#281BA7 #A71B54 #9AA71B #1BA76E
square
#281BA7 #A71B54 #9AA71B #1BA76E
split-complementary
#281BA7 #A76E1B #54A71B
monochromatic
#0F0A3E #1B1272 #281BA7 #3524DC #6558E4

Accessibility & contrast

On white

11.63
#281BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#281BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281BA7
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281BA7#FFFFFF#000000##FFFFFF
##281BA71.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAB
Deuteranopia (green-blind)
#0032A5
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #281ba7;
/* rgb */ color: rgb(40, 27, 167);
/* oklch */ color: oklch(36.5% 0.205 273.4);
Tailwind
colors: {
  custom: {
    50: '#795dc3',
    500: '#281ba7',
    950: '#000000',
  },
}
SCSS
$custom: #281ba7;
$custom-light: #795dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#281ba7",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 167
  },
  "hsl": {
    "h": 245.571,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.36492,
    "c": 0.20541,
    "h": 273.4
  },
  "luminance": 0.04025
}

Semantic roles & 50–950 ramp

primary
#281BA7
secondary
#BDC856
accent
#EF39DE
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #281BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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