#281BB3#281BB3

#281BB3 is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.9% C 0.219 H 272.4°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#281BB3
RGBrgb(40, 27, 179)
HSLhsl(245, 74%, 40%)
HSVhsv(245, 85%, 70%)
CMYKcmyk(77.7%, 84.9%, 0%, 29.8%)
CIE-LABlab(25.23, 53.54, -75.67)
CIE-LCHlch(25.23, 92.69, 305.28°)
OKLaboklab(37.93% 0.0091 -0.2188)
OKLCHoklch(37.93% 0.219 272.4)
XYZxyz(9.4010, 4.4886, 43.0100)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281BB3 #A6B31B
analogous
#1B5AB3 #281BB3 #741BB3
triadic
#281BB3 #B3281B #1BB328
tetradic
#281BB3 #B31B5A #A6B31B #1BB374
square
#281BB3 #B31B5A #A6B31B #1BB374
split-complementary
#281BB3 #B3741B #5AB31B
monochromatic
#100B49 #1C137E #281BB3 #3B2CDF #6D61E7

Accessibility & contrast

On white

11.06
#281BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#281BB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281BB3
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281BB3#FFFFFF#000000##FFFFFF
##281BB31.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B7
Deuteranopia (green-blind)
#0034B1
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #281bb3;
/* rgb */ color: rgb(40, 27, 179);
/* oklch */ color: oklch(37.9% 0.219 272.4);
Tailwind
colors: {
  custom: {
    50: '#7c5ecb',
    500: '#281bb3',
    950: '#000000',
  },
}
SCSS
$custom: #281bb3;
$custom-light: #7c5ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#281bb3",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 179
  },
  "hsl": {
    "h": 245.132,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.37928,
    "c": 0.21904,
    "h": 272.4
  },
  "luminance": 0.0449
}

Semantic roles & 50–950 ramp

primary
#281BB3
secondary
#C2CC5E
accent
#F037E1
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #281BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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