#281B9F#281B9F

#281B9F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.5% C 0.196 H 274.2°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#281B9F
RGBrgb(40, 27, 159)
HSLhsl(246, 71%, 36%)
HSVhsv(246, 83%, 62%)
CMYKcmyk(74.8%, 83%, 0%, 37.6%)
CIE-LABlab(22.78, 47.51, -67.64)
CIE-LCHlch(22.78, 82.65, 305.08°)
OKLaboklab(35.55% 0.0145 -0.1956)
OKLCHoklch(35.55% 0.196 274.2)
XYZxyz(7.5229, 3.7374, 33.1191)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B9F #929F1B
analogous
#1B509F #281B9F #6A1B9F
triadic
#281B9F #9F281B #1B9F28
tetradic
#281B9F #9F1B50 #929F1B #1B9F6A
square
#281B9F #9F1B50 #929F1B #1B9F6A
split-complementary
#281B9F #9F6A1B #509F1B
monochromatic
#0E0936 #1B126B #281B9F #3524D3 #6153E2

Accessibility & contrast

On white

12.02
#281B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#281B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B9F
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B9F#FFFFFF#000000##FFFFFF
##281B9F1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA3
Deuteranopia (green-blind)
#00309D
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #281b9f;
/* rgb */ color: rgb(40, 27, 159);
/* oklch */ color: oklch(35.5% 0.196 274.2);
Tailwind
colors: {
  custom: {
    50: '#775cbd',
    500: '#281b9f',
    950: '#000000',
  },
}
SCSS
$custom: #281b9f;
$custom-light: #775cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#281b9f",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 159
  },
  "hsl": {
    "h": 245.909,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35545,
    "c": 0.19613,
    "h": 274.2
  },
  "luminance": 0.03738
}

Semantic roles & 50–950 ramp

primary
#281B9F
secondary
#B9C551
accent
#EE3ADC
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #281B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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