#281B7B#281B7B

#281B7B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.152 H 279.2°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#281B7B
RGBrgb(40, 27, 123)
HSLhsl(248, 64%, 29%)
HSVhsv(248, 78%, 48%)
CMYKcmyk(67.5%, 78%, 0%, 51.8%)
CIE-LABlab(18.65, 36.00, -52.01)
CIE-LCHlch(18.65, 63.26, 304.69°)
OKLaboklab(31.45% 0.0243 -0.1502)
OKLCHoklch(31.45% 0.152 279.2)
XYZxyz(4.8410, 2.6646, 18.9943)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B7B #6E7B1B
analogous
#1B3E7B #281B7B #581B7B
triadic
#281B7B #7B281B #1B7B28
tetradic
#281B7B #7B1B3E #6E7B1B #1B7B58
square
#281B7B #7B1B3E #6E7B1B #1B7B58
split-complementary
#281B7B #7B581B #3E7B1B
monochromatic
#080619 #181049 #281B7B #3826AD #513CD4

Accessibility & contrast

On white

13.70
#281B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#281B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B7B
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B7B#FFFFFF#000000##FFFFFF
##281B7B1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #281b7b;
/* rgb */ color: rgb(40, 27, 123);
/* oklch */ color: oklch(31.4% 0.152 279.2);
Tailwind
colors: {
  custom: {
    50: '#6e5aa2',
    500: '#281b7b',
    950: '#000000',
  },
}
SCSS
$custom: #281b7b;
$custom-light: #6e5aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#281b7b",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 248.125,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31447,
    "c": 0.15212,
    "h": 279.2
  },
  "luminance": 0.02665
}

Semantic roles & 50–950 ramp

primary
#281B7B
secondary
#A0AF43
accent
#E741D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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