#281C8F#281C8F

#281C8F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.176 H 276.0°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#281C8F
RGBrgb(40, 28, 143)
HSLhsl(246, 67%, 34%)
HSVhsv(246, 80%, 56%)
CMYKcmyk(72%, 80.4%, 0%, 43.9%)
CIE-LABlab(21.07, 41.98, -60.61)
CIE-LCHlch(21.07, 73.73, 304.71°)
OKLaboklab(33.81% 0.0185 -0.1752)
OKLCHoklch(33.81% 0.176 276)
XYZxyz(6.2466, 3.2642, 26.2821)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C8F #838F1C
analogous
#1C498F #281C8F #611C8F
triadic
#281C8F #8F281C #1C8F28
tetradic
#281C8F #8F1C49 #838F1C #1C8F61
square
#281C8F #8F1C49 #838F1C #1C8F61
split-complementary
#281C8F #8F611C #498F1C
monochromatic
#0B0829 #1A125C #281C8F #3626C2 #594ADC

Accessibility & contrast

On white

12.70
#281C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#281C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C8F
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C8F#FFFFFF#000000##FFFFFF
##281C8F1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #281c8f;
/* rgb */ color: rgb(40, 28, 143);
/* oklch */ color: oklch(33.8% 0.176 276.0);
Tailwind
colors: {
  custom: {
    50: '#735bb1',
    500: '#281c8f',
    950: '#000000',
  },
}
SCSS
$custom: #281c8f;
$custom-light: #735bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#281c8f",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 246.261,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33809,
    "c": 0.17618,
    "h": 276
  },
  "luminance": 0.03265
}

Semantic roles & 50–950 ramp

primary
#281C8F
secondary
#B1BE49
accent
#EA3ED8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #281C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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