#281B6D#281B6D

#281B6D is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.134 H 281.9°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#281B6D
RGBrgb(40, 27, 109)
HSLhsl(250, 60%, 27%)
HSVhsv(250, 75%, 43%)
CMYKcmyk(63.3%, 75.2%, 0%, 57.3%)
CIE-LABlab(17.17, 31.31, -45.41)
CIE-LCHlch(17.17, 55.16, 304.59°)
OKLaboklab(29.96% 0.0276 -0.1309)
OKLCHoklch(29.96% 0.134 281.9)
XYZxyz(4.0265, 2.3388, 14.7043)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B6D #606D1B
analogous
#1B376D #281B6D #511B6D
triadic
#281B6D #6D281B #1B6D28
tetradic
#281B6D #6D1B37 #606D1B #1B6D51
square
#281B6D #6D1B37 #606D1B #1B6D51
split-complementary
#281B6D #6D511B #376D1B
monochromatic
#090619 #160F3C #281B6D #3A279E #4D35CD

Accessibility & contrast

On white

14.31
#281B6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#281B6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281B6D
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B6D#FFFFFF#000000##FFFFFF
##281B6D1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6F
Deuteranopia (green-blind)
#00276B
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #281b6d;
/* rgb */ color: rgb(40, 27, 109);
/* oklch */ color: oklch(30.0% 0.134 281.9);
Tailwind
colors: {
  custom: {
    50: '#6b5998',
    500: '#281b6d',
    950: '#000000',
  },
}
SCSS
$custom: #281b6d;
$custom-light: #6b5998;
$custom-dark: #000000;
JSON
{
  "hex": "#281b6d",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 109
  },
  "hsl": {
    "h": 249.512,
    "s": 60.294,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29959,
    "c": 0.13378,
    "h": 281.9
  },
  "luminance": 0.02339
}

Semantic roles & 50–950 ramp

primary
#281B6D
secondary
#93A242
accent
#E344CA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #281B6D

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

Preview Lab → · Contrast checker → · Palette generator →

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