#281FBA#281FBA

#281FBA is a dark, highly saturated blue. Relative luminance 0.050; OKLCH L 39.2% C 0.224 H 271.6°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#281FBA
RGBrgb(40, 31, 186)
HSLhsl(243, 71%, 43%)
HSVhsv(243, 83%, 73%)
CMYKcmyk(78.5%, 83.3%, 0%, 27.1%)
CIE-LABlab(26.66, 53.90, -77.45)
CIE-LCHlch(26.66, 94.36, 304.84°)
OKLaboklab(39.16% 0.0064 -0.2241)
OKLCHoklch(39.16% 0.224 271.6)
XYZxyz(10.2250, 4.9751, 46.8663)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281FBA #B1BA1F
analogous
#1F63BA #281FBA #761FBA
triadic
#281FBA #BA281F #1FBA28
tetradic
#281FBA #BA1F63 #B1BA1F #1FBA76
square
#281FBA #BA1F63 #B1BA1F #1FBA76
split-complementary
#281FBA #BA761F #63BA1F
monochromatic
#110E51 #1D1686 #281FBA #4238DE #746DE7

Accessibility & contrast

On white

10.53
#281FBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#281FBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281FBA
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281FBA#FFFFFF#000000##FFFFFF
##281FBA1.0010.532.0010.53
#FFFFFF10.531.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046BE
Deuteranopia (green-blind)
#0037B7
Tritanopia (blue-blind)
#00526F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #281fba;
/* rgb */ color: rgb(40, 31, 186);
/* oklch */ color: oklch(39.2% 0.224 271.6);
Tailwind
colors: {
  custom: {
    50: '#7d60d0',
    500: '#281fba',
    950: '#000000',
  },
}
SCSS
$custom: #281fba;
$custom-light: #7d60d0;
$custom-dark: #000000;
JSON
{
  "hex": "#281fba",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 186
  },
  "hsl": {
    "h": 243.484,
    "s": 71.429,
    "l": 42.549
  },
  "oklch": {
    "l": 0.39163,
    "c": 0.22418,
    "h": 271.6
  },
  "luminance": 0.04976
}

Semantic roles & 50–950 ramp

primary
#281FBA
secondary
#C7CD68
accent
#EE3AE4
background
#F8F5FD
surface
#F0EAFA
border
#CBC6D3
text
#0C0514
muted
#7D7983

Preview Lab

Preview with #281FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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