#281C9F#281C9F

#281C9F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.195 H 274.2°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#281C9F
RGBrgb(40, 28, 159)
HSLhsl(245, 70%, 37%)
HSVhsv(245, 82%, 62%)
CMYKcmyk(74.8%, 82.4%, 0%, 37.6%)
CIE-LABlab(22.94, 47.04, -67.37)
CIE-LCHlch(22.94, 82.16, 304.92°)
OKLaboklab(35.66% 0.0142 -0.1948)
OKLCHoklch(35.66% 0.195 274.2)
XYZxyz(7.5463, 3.7841, 33.1269)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C9F #939F1C
analogous
#1C529F #281C9F #6A1C9F
triadic
#281C9F #9F281C #1C9F28
tetradic
#281C9F #9F1C52 #939F1C #1C9F6A
square
#281C9F #9F1C52 #939F1C #1C9F6A
split-complementary
#281C9F #9F6A1C #529F1C
monochromatic
#0E0A37 #1B136B #281C9F #3525D3 #6154E1

Accessibility & contrast

On white

11.95
#281C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#281C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C9F
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C9F#FFFFFF#000000##FFFFFF
##281C9F1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00319D
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #281c9f;
/* rgb */ color: rgb(40, 28, 159);
/* oklch */ color: oklch(35.7% 0.195 274.2);
Tailwind
colors: {
  custom: {
    50: '#775cbd',
    500: '#281c9f',
    950: '#000000',
  },
}
SCSS
$custom: #281c9f;
$custom-light: #775cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#281c9f",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 159
  },
  "hsl": {
    "h": 245.496,
    "s": 70.053,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35656,
    "c": 0.19536,
    "h": 274.2
  },
  "luminance": 0.03785
}

Semantic roles & 50–950 ramp

primary
#281C9F
secondary
#BAC453
accent
#ED3BDD
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #281C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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