#281B8C#281B8C

#281B8C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.3% C 0.173 H 276.5°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#281B8C
RGBrgb(40, 27, 140)
HSLhsl(247, 68%, 33%)
HSVhsv(247, 81%, 55%)
CMYKcmyk(71.4%, 80.7%, 0%, 45.1%)
CIE-LABlab(20.55, 41.54, -59.60)
CIE-LCHlch(20.55, 72.65, 304.87°)
OKLaboklab(33.34% 0.0198 -0.1723)
OKLCHoklch(33.34% 0.173 276.5)
XYZxyz(5.9991, 3.1279, 25.0934)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B8C #7F8C1B
analogous
#1B468C #281B8C #611B8C
triadic
#281B8C #8C281B #1B8C28
tetradic
#281B8C #8C1B46 #7F8C1B #1B8C61
square
#281B8C #8C1B46 #7F8C1B #1B8C61
split-complementary
#281B8C #8C611B #468C1B
monochromatic
#0B0725 #191159 #281B8C #3725BF #5746DB

Accessibility & contrast

On white

12.92
#281B8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#281B8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B8C
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B8C#FFFFFF#000000##FFFFFF
##281B8C1.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281b8c;
/* rgb */ color: rgb(40, 27, 140);
/* oklch */ color: oklch(33.3% 0.173 276.5);
Tailwind
colors: {
  custom: {
    50: '#725baf',
    500: '#281b8c',
    950: '#000000',
  },
}
SCSS
$custom: #281b8c;
$custom-light: #725baf;
$custom-dark: #000000;
JSON
{
  "hex": "#281b8c",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 140
  },
  "hsl": {
    "h": 246.903,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33343,
    "c": 0.17341,
    "h": 276.5
  },
  "luminance": 0.03128
}

Semantic roles & 50–950 ramp

primary
#281B8C
secondary
#AFBD46
accent
#EB3DD7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #281B8C

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

Preview Lab → · Contrast checker → · Palette generator →

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