#281C95#281C95

#281C95 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.183 H 275.3°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#281C95
RGBrgb(40, 28, 149)
HSLhsl(246, 68%, 35%)
HSVhsv(246, 81%, 58%)
CMYKcmyk(73.2%, 81.2%, 0%, 41.6%)
CIE-LABlab(21.77, 43.90, -63.18)
CIE-LCHlch(21.77, 76.93, 304.79°)
OKLaboklab(34.5% 0.0169 -0.1827)
OKLCHoklch(34.5% 0.183 275.3)
XYZxyz(6.7134, 3.4509, 28.7402)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C95 #89951C
analogous
#1C4D95 #281C95 #641C95
triadic
#281C95 #95281C #1C9528
tetradic
#281C95 #951C4D #89951C #1C9564
square
#281C95 #951C4D #89951C #1C9564
split-complementary
#281C95 #95641C #4D951C
monochromatic
#0C092E #1A1261 #281C95 #3626C9 #5C4EDE

Accessibility & contrast

On white

12.42
#281C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#281C95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C95
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C95#FFFFFF#000000##FFFFFF
##281C951.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#002F93
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #281c95;
/* rgb */ color: rgb(40, 28, 149);
/* oklch */ color: oklch(34.5% 0.183 275.3);
Tailwind
colors: {
  custom: {
    50: '#745cb5',
    500: '#281c95',
    950: '#000000',
  },
}
SCSS
$custom: #281c95;
$custom-light: #745cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#281c95",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 149
  },
  "hsl": {
    "h": 245.95,
    "s": 68.362,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34496,
    "c": 0.18346,
    "h": 275.3
  },
  "luminance": 0.03452
}

Semantic roles & 50–950 ramp

primary
#281C95
secondary
#B5C04D
accent
#EB3DDA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281C95

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

Preview Lab → · Contrast checker → · Palette generator →

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