#281F83#281F83

#281F83 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.158 H 277.2°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#281F83
RGBrgb(40, 31, 131)
HSLhsl(245, 62%, 32%)
HSVhsv(245, 76%, 51%)
CMYKcmyk(69.5%, 76.3%, 0%, 48.6%)
CIE-LABlab(20.32, 36.38, -54.33)
CIE-LCHlch(20.32, 65.39, 303.81°)
OKLaboklab(32.89% 0.0198 -0.157)
OKLCHoklch(32.89% 0.158 277.2)
XYZxyz(5.4605, 3.0693, 21.7730)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F83 #7A831F
analogous
#1F4883 #281F83 #5A1F83
triadic
#281F83 #83281F #1F8328
tetradic
#281F83 #831F48 #7A831F #1F835A
square
#281F83 #831F48 #7A831F #1F835A
split-complementary
#281F83 #835A1F #48831F
monochromatic
#0A0820 #191352 #281F83 #372BB4 #5549D4

Accessibility & contrast

On white

13.01
#281F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#281F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F83
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F83#FFFFFF#000000##FFFFFF
##281F831.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#002D81
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #281f83;
/* rgb */ color: rgb(40, 31, 131);
/* oklch */ color: oklch(32.9% 0.158 277.2);
Tailwind
colors: {
  custom: {
    50: '#705ca8',
    500: '#281f83',
    950: '#000000',
  },
}
SCSS
$custom: #281f83;
$custom-light: #705ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#281f83",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 245.4,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32885,
    "c": 0.15823,
    "h": 277.2
  },
  "luminance": 0.0307
}

Semantic roles & 50–950 ramp

primary
#281F83
secondary
#ACB648
accent
#E543D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281F83

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

Preview Lab → · Contrast checker → · Palette generator →

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