#281FA6#281FA6

#281FA6 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 36.8% C 0.201 H 273.2°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#281FA6
RGBrgb(40, 31, 166)
HSLhsl(244, 69%, 39%)
HSVhsv(244, 81%, 65%)
CMYKcmyk(75.9%, 81.3%, 0%, 34.9%)
CIE-LABlab(24.27, 47.77, -69.43)
CIE-LCHlch(24.27, 84.28, 304.53°)
OKLaboklab(36.82% 0.0114 -0.2009)
OKLCHoklch(36.82% 0.201 273.2)
XYZxyz(8.2457, 4.1834, 36.4419)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281FA6 #9DA61F
analogous
#1F59A6 #281FA6 #6B1FA6
triadic
#281FA6 #A6281F #1FA628
tetradic
#281FA6 #A61F59 #9DA61F #1FA66B
square
#281FA6 #A61F59 #9DA61F #1FA66B
split-complementary
#281FA6 #A66B1F #59A61F
monochromatic
#0F0C3F #1C1572 #281FA6 #362BD7 #675EE1

Accessibility & contrast

On white

11.43
#281FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#281FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281FA6
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281FA6#FFFFFF#000000##FFFFFF
##281FA61.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AA
Deuteranopia (green-blind)
#0033A4
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #281fa6;
/* rgb */ color: rgb(40, 31, 166);
/* oklch */ color: oklch(36.8% 0.201 273.2);
Tailwind
colors: {
  custom: {
    50: '#785fc2',
    500: '#281fa6',
    950: '#000000',
  },
}
SCSS
$custom: #281fa6;
$custom-light: #785fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#281fa6",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 244,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.36815,
    "c": 0.20118,
    "h": 273.2
  },
  "luminance": 0.04184
}

Semantic roles & 50–950 ramp

primary
#281FA6
secondary
#BEC55B
accent
#EB3CE0
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #281FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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