#281B8E#281B8E

#281B8E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.176 H 276.3°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#281B8E
RGBrgb(40, 27, 142)
HSLhsl(247, 68%, 33%)
HSVhsv(247, 81%, 56%)
CMYKcmyk(71.8%, 81%, 0%, 44.3%)
CIE-LABlab(20.78, 42.18, -60.47)
CIE-LCHlch(20.78, 73.73, 304.89°)
OKLaboklab(33.57% 0.0192 -0.1748)
OKLCHoklch(33.57% 0.176 276.3)
XYZxyz(6.1479, 3.1874, 25.8772)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B8E #818E1B
analogous
#1B478E #281B8E #611B8E
triadic
#281B8E #8E281B #1B8E28
tetradic
#281B8E #8E1B47 #818E1B #1B8E61
square
#281B8E #8E1B47 #818E1B #1B8E61
split-complementary
#281B8E #8E611B #478E1B
monochromatic
#0B0727 #1A115B #281B8E #3625C1 #5847DC

Accessibility & contrast

On white

12.82
#281B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#281B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B8E
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B8E#FFFFFF#000000##FFFFFF
##281B8E1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002D8C
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #281b8e;
/* rgb */ color: rgb(40, 27, 142);
/* oklch */ color: oklch(33.6% 0.176 276.3);
Tailwind
colors: {
  custom: {
    50: '#735bb0',
    500: '#281b8e',
    950: '#000000',
  },
}
SCSS
$custom: #281b8e;
$custom-light: #735bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#281b8e",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 246.783,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33571,
    "c": 0.17585,
    "h": 276.3
  },
  "luminance": 0.03188
}

Semantic roles & 50–950 ramp

primary
#281B8E
secondary
#B0BE47
accent
#EB3DD7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #281B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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