#281C94#281C94

#281C94 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.4% C 0.182 H 275.4°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#281C94
RGBrgb(40, 28, 148)
HSLhsl(246, 68%, 35%)
HSVhsv(246, 81%, 58%)
CMYKcmyk(73%, 81.1%, 0%, 42%)
CIE-LABlab(21.65, 43.58, -62.75)
CIE-LCHlch(21.65, 76.40, 304.78°)
OKLaboklab(34.38% 0.0172 -0.1814)
OKLCHoklch(34.38% 0.182 275.4)
XYZxyz(6.6339, 3.4191, 28.3216)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C94 #88941C
analogous
#1C4C94 #281C94 #641C94
triadic
#281C94 #94281C #1C9428
tetradic
#281C94 #941C4C #88941C #1C9464
square
#281C94 #941C4C #88941C #1C9464
split-complementary
#281C94 #94641C #4C941C
monochromatic
#0C092D #1A1261 #281C94 #3626C7 #5B4DDD

Accessibility & contrast

On white

12.47
#281C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#281C94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C94
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C94#FFFFFF#000000##FFFFFF
##281C941.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#002E92
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #281c94;
/* rgb */ color: rgb(40, 28, 148);
/* oklch */ color: oklch(34.4% 0.182 275.4);
Tailwind
colors: {
  custom: {
    50: '#745cb5',
    500: '#281c94',
    950: '#000000',
  },
}
SCSS
$custom: #281c94;
$custom-light: #745cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#281c94",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 148
  },
  "hsl": {
    "h": 246,
    "s": 68.182,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34381,
    "c": 0.18225,
    "h": 275.4
  },
  "luminance": 0.0342
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #281C94

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

Preview Lab → · Contrast checker → · Palette generator →

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