#281C77#281C77

#281C77 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.146 H 279.7°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#281C77
RGBrgb(40, 28, 119)
HSLhsl(248, 62%, 29%)
HSVhsv(248, 76%, 47%)
CMYKcmyk(66.4%, 76.5%, 0%, 53.3%)
CIE-LABlab(18.42, 34.09, -49.82)
CIE-LCHlch(18.42, 60.37, 304.38°)
OKLaboklab(31.16% 0.0246 -0.1438)
OKLCHoklch(31.16% 0.146 279.7)
XYZxyz(4.6190, 2.6132, 17.7102)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C77 #6B771C
analogous
#1C3E77 #281C77 #561C77
triadic
#281C77 #77281C #1C7728
tetradic
#281C77 #771C3E #6B771C #1C7756
square
#281C77 #771C3E #6B771C #1C7756
split-complementary
#281C77 #77561C #3E771C
monochromatic
#080619 #171045 #281C77 #3928A9 #503CD1

Accessibility & contrast

On white

13.79
#281C77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#281C77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C77
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C77#FFFFFF#000000##FFFFFF
##281C771.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002975
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #281c77;
/* rgb */ color: rgb(40, 28, 119);
/* oklch */ color: oklch(31.2% 0.146 279.7);
Tailwind
colors: {
  custom: {
    50: '#6d5a9f',
    500: '#281c77',
    950: '#000000',
  },
}
SCSS
$custom: #281c77;
$custom-light: #6d5a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#281c77",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 119
  },
  "hsl": {
    "h": 247.912,
    "s": 61.905,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31159,
    "c": 0.14587,
    "h": 279.7
  },
  "luminance": 0.02614
}

Semantic roles & 50–950 ramp

primary
#281C77
secondary
#9DAB44
accent
#E543D0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #281C77

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

Preview Lab → · Contrast checker → · Palette generator →

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