#281F76#281F76

#281F76 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.141 H 279.2°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#281F76
RGBrgb(40, 31, 118)
HSLhsl(246, 58%, 29%)
HSVhsv(246, 74%, 46%)
CMYKcmyk(66.1%, 73.7%, 0%, 53.7%)
CIE-LABlab(18.97, 31.95, -48.29)
CIE-LCHlch(18.97, 57.90, 303.49°)
OKLaboklab(31.51% 0.0226 -0.1393)
OKLCHoklch(31.51% 0.141 279.2)
XYZxyz(4.6340, 2.7387, 17.4205)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F76 #6D761F
analogous
#1F4276 #281F76 #541F76
triadic
#281F76 #76281F #1F7628
tetradic
#281F76 #761F42 #6D761F #1F7654
square
#281F76 #761F42 #6D761F #1F7654
split-complementary
#281F76 #76541F #42761F
monochromatic
#080618 #181246 #281F76 #382CA6 #5042CD

Accessibility & contrast

On white

13.57
#281F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281F76
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F76#FFFFFF#000000##FFFFFF
##281F761.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002B74
Tritanopia (blue-blind)
#003748
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #281f76;
/* rgb */ color: rgb(40, 31, 118);
/* oklch */ color: oklch(31.5% 0.141 279.2);
Tailwind
colors: {
  custom: {
    50: '#6d5c9e',
    500: '#281f76',
    950: '#000000',
  },
}
SCSS
$custom: #281f76;
$custom-light: #6d5c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#281f76",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 246.207,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31514,
    "c": 0.14113,
    "h": 279.2
  },
  "luminance": 0.02739
}

Semantic roles & 50–950 ramp

primary
#281F76
secondary
#9FAA47
accent
#E246D2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #281F76

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

Preview Lab → · Contrast checker → · Palette generator →

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