#281B94#281B94

#281B94 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.183 H 275.5°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#281B94
RGBrgb(40, 27, 148)
HSLhsl(246, 69%, 34%)
HSVhsv(246, 82%, 58%)
CMYKcmyk(73%, 81.8%, 0%, 42%)
CIE-LABlab(21.48, 44.08, -63.04)
CIE-LCHlch(21.48, 76.92, 304.96°)
OKLaboklab(34.26% 0.0176 -0.1823)
OKLCHoklch(34.26% 0.183 275.5)
XYZxyz(6.6105, 3.3725, 28.3138)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B94 #87941B
analogous
#1B4B94 #281B94 #651B94
triadic
#281B94 #94281B #1B9428
tetradic
#281B94 #941B4B #87941B #1B9465
square
#281B94 #941B4B #87941B #1B9465
split-complementary
#281B94 #94651B #4B941B
monochromatic
#0C082C #1A1260 #281B94 #3624C8 #5B4BDE

Accessibility & contrast

On white

12.54
#281B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#281B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B94
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B94#FFFFFF#000000##FFFFFF
##281B941.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.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: #281b94;
/* rgb */ color: rgb(40, 27, 148);
/* oklch */ color: oklch(34.3% 0.183 275.5);
Tailwind
colors: {
  custom: {
    50: '#745bb5',
    500: '#281b94',
    950: '#000000',
  },
}
SCSS
$custom: #281b94;
$custom-light: #745bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#281b94",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 246.446,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34261,
    "c": 0.1831,
    "h": 275.5
  },
  "luminance": 0.03373
}

Semantic roles & 50–950 ramp

primary
#281B94
secondary
#B4C04B
accent
#EC3CD9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281B94

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

Preview Lab → · Contrast checker → · Palette generator →

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