#281F85#281F85

#281F85 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.161 H 276.9°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#281F85
RGBrgb(40, 31, 133)
HSLhsl(245, 62%, 32%)
HSVhsv(245, 77%, 52%)
CMYKcmyk(69.9%, 76.7%, 0%, 47.8%)
CIE-LABlab(20.53, 37.06, -55.24)
CIE-LCHlch(20.53, 66.52, 303.85°)
OKLaboklab(33.1% 0.0194 -0.1596)
OKLCHoklch(33.1% 0.161 276.9)
XYZxyz(5.5973, 3.1240, 22.4938)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F85 #7C851F
analogous
#1F4985 #281F85 #5B1F85
triadic
#281F85 #85281F #1F8528
tetradic
#281F85 #851F49 #7C851F #1F855B
square
#281F85 #851F49 #7C851F #1F855B
split-complementary
#281F85 #855B1F #49851F
monochromatic
#0A0822 #191353 #281F85 #372BB7 #564AD5

Accessibility & contrast

On white

12.92
#281F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#281F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F85
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F85#FFFFFF#000000##FFFFFF
##281F851.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#002D83
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #281f85;
/* rgb */ color: rgb(40, 31, 133);
/* oklch */ color: oklch(33.1% 0.161 276.9);
Tailwind
colors: {
  custom: {
    50: '#705caa',
    500: '#281f85',
    950: '#000000',
  },
}
SCSS
$custom: #281f85;
$custom-light: #705caa;
$custom-dark: #000000;
JSON
{
  "hex": "#281f85",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 245.294,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33101,
    "c": 0.16079,
    "h": 276.9
  },
  "luminance": 0.03125
}

Semantic roles & 50–950 ramp

primary
#281F85
secondary
#ADB749
accent
#E543D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281F85

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

Preview Lab → · Contrast checker → · Palette generator →

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