#281F8D#281F8D

#281F8D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.171 H 275.9°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#281F8D
RGBrgb(40, 31, 141)
HSLhsl(245, 64%, 34%)
HSVhsv(245, 78%, 55%)
CMYKcmyk(71.6%, 78%, 0%, 44.7%)
CIE-LABlab(21.41, 39.72, -58.81)
CIE-LCHlch(21.41, 70.97, 304.04°)
OKLaboklab(33.98% 0.0175 -0.17)
OKLCHoklch(33.98% 0.171 275.9)
XYZxyz(6.1712, 3.3536, 25.5162)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F8D #848D1F
analogous
#1F4D8D #281F8D #5F1F8D
triadic
#281F8D #8D281F #1F8D28
tetradic
#281F8D #8D1F4D #848D1F #1F8D5F
square
#281F8D #8D1F4D #848D1F #1F8D5F
split-complementary
#281F8D #8D5F1F #4D8D1F
monochromatic
#0C0929 #1A145B #281F8D #362ABF #5A4ED8

Accessibility & contrast

On white

12.57
#281F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#281F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F8D
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F8D#FFFFFF#000000##FFFFFF
##281F8D1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281f8d;
/* rgb */ color: rgb(40, 31, 141);
/* oklch */ color: oklch(34.0% 0.171 275.9);
Tailwind
colors: {
  custom: {
    50: '#725db0',
    500: '#281f8d',
    950: '#000000',
  },
}
SCSS
$custom: #281f8d;
$custom-light: #725db0;
$custom-dark: #000000;
JSON
{
  "hex": "#281f8d",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 244.909,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.33978,
    "c": 0.17091,
    "h": 275.9
  },
  "luminance": 0.03354
}

Semantic roles & 50–950 ramp

primary
#281F8D
secondary
#B2BB4D
accent
#E741D9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #281F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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