#281F77#281F77

#281F77 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.142 H 279.0°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#281F77
RGBrgb(40, 31, 119)
HSLhsl(246, 59%, 29%)
HSVhsv(246, 74%, 47%)
CMYKcmyk(66.4%, 73.9%, 0%, 53.3%)
CIE-LABlab(19.07, 32.29, -48.76)
CIE-LCHlch(19.07, 58.49, 303.51°)
OKLaboklab(31.62% 0.0224 -0.1407)
OKLCHoklch(31.62% 0.142 279)
XYZxyz(4.6938, 2.7626, 17.7351)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F77 #6E771F
analogous
#1F4277 #281F77 #541F77
triadic
#281F77 #77281F #1F7728
tetradic
#281F77 #771F42 #6E771F #1F7754
square
#281F77 #771F42 #6E771F #1F7754
split-complementary
#281F77 #77541F #42771F
monochromatic
#080618 #181246 #281F77 #382CA8 #5143CE

Accessibility & contrast

On white

13.53
#281F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#281F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F77
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F77#FFFFFF#000000##FFFFFF
##281F771.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327A
Deuteranopia (green-blind)
#002B75
Tritanopia (blue-blind)
#003748
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #281f77;
/* rgb */ color: rgb(40, 31, 119);
/* oklch */ color: oklch(31.6% 0.142 279.0);
Tailwind
colors: {
  custom: {
    50: '#6d5c9f',
    500: '#281f77',
    950: '#000000',
  },
}
SCSS
$custom: #281f77;
$custom-light: #6d5c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#281f77",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 119
  },
  "hsl": {
    "h": 246.136,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31617,
    "c": 0.14248,
    "h": 279
  },
  "luminance": 0.02763
}

Semantic roles & 50–950 ramp

primary
#281F77
secondary
#A0AB47
accent
#E246D2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #281F77

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

Preview Lab → · Contrast checker → · Palette generator →

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