#281F82#281F82

#281F82 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.157 H 277.3°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#281F82
RGBrgb(40, 31, 130)
HSLhsl(245, 61%, 32%)
HSVhsv(245, 76%, 51%)
CMYKcmyk(69.2%, 76.2%, 0%, 49%)
CIE-LABlab(20.21, 36.04, -53.88)
CIE-LCHlch(20.21, 64.82, 303.78°)
OKLaboklab(32.78% 0.02 -0.1556)
OKLCHoklch(32.78% 0.157 277.3)
XYZxyz(5.3930, 3.0423, 21.4178)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F82 #79821F
analogous
#1F4882 #281F82 #5A1F82
triadic
#281F82 #82281F #1F8228
tetradic
#281F82 #821F48 #79821F #1F825A
square
#281F82 #821F48 #79821F #1F825A
split-complementary
#281F82 #825A1F #48821F
monochromatic
#0A071F #191351 #281F82 #372BB3 #5548D3

Accessibility & contrast

On white

13.05
#281F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281F82
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F82#FFFFFF#000000##FFFFFF
##281F821.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002D80
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #281f82;
/* rgb */ color: rgb(40, 31, 130);
/* oklch */ color: oklch(32.8% 0.157 277.3);
Tailwind
colors: {
  custom: {
    50: '#705ca7',
    500: '#281f82',
    950: '#000000',
  },
}
SCSS
$custom: #281f82;
$custom-light: #705ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#281f82",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 245.455,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32778,
    "c": 0.15694,
    "h": 277.3
  },
  "luminance": 0.03043
}

Semantic roles & 50–950 ramp

primary
#281F82
secondary
#ABB548
accent
#E543D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #281F82

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

Preview Lab → · Contrast checker → · Palette generator →

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