#281F8E#281F8E

#281F8E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.172 H 275.8°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#281F8E
RGBrgb(40, 31, 142)
HSLhsl(245, 64%, 34%)
HSVhsv(245, 78%, 56%)
CMYKcmyk(71.8%, 78.2%, 0%, 44.3%)
CIE-LABlab(21.52, 40.05, -59.25)
CIE-LCHlch(21.52, 71.52, 304.06°)
OKLaboklab(34.09% 0.0173 -0.1713)
OKLCHoklch(34.09% 0.172 275.8)
XYZxyz(6.2459, 3.3835, 25.9099)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F8E #858E1F
analogous
#1F4E8E #281F8E #601F8E
triadic
#281F8E #8E281F #1F8E28
tetradic
#281F8E #8E1F4E #858E1F #1F8E60
square
#281F8E #8E1F4E #858E1F #1F8E60
split-complementary
#281F8E #8E601F #4E8E1F
monochromatic
#0C092A #1A145C #281F8E #362AC0 #5A4FD9

Accessibility & contrast

On white

12.52
#281F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#281F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F8E
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F8E#FFFFFF#000000##FFFFFF
##281F8E1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #281f8e;
/* rgb */ color: rgb(40, 31, 142);
/* oklch */ color: oklch(34.1% 0.172 275.8);
Tailwind
colors: {
  custom: {
    50: '#735db0',
    500: '#281f8e',
    950: '#000000',
  },
}
SCSS
$custom: #281f8e;
$custom-light: #735db0;
$custom-dark: #000000;
JSON
{
  "hex": "#281f8e",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 244.865,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34088,
    "c": 0.17216,
    "h": 275.8
  },
  "luminance": 0.03384
}

Semantic roles & 50–950 ramp

primary
#281F8E
secondary
#B3BB4D
accent
#E741DA
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #281F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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