#281E6A#281E6A

#281E6A is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.1% C 0.126 H 281.7°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#281E6A
RGBrgb(40, 30, 106)
HSLhsl(248, 56%, 27%)
HSVhsv(248, 72%, 42%)
CMYKcmyk(62.3%, 71.7%, 0%, 58.4%)
CIE-LABlab(17.55, 28.42, -42.84)
CIE-LCHlch(17.55, 51.41, 303.56°)
OKLaboklab(30.14% 0.0256 -0.1233)
OKLCHoklch(30.14% 0.126 281.7)
XYZxyz(3.9401, 2.4200, 13.8924)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E6A #606A1E
analogous
#1E3A6A #281E6A #4E1E6A
triadic
#281E6A #6A281E #1E6A28
tetradic
#281E6A #6A1E3A #606A1E #1E6A4E
square
#281E6A #6A1E3A #606A1E #1E6A4E
split-complementary
#281E6A #6A4E1E #3A6A1E
monochromatic
#090718 #16113A #281E6A #3A2C9A #4D3BC7

Accessibility & contrast

On white

14.15
#281E6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#281E6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E6A
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E6A#FFFFFF#000000##FFFFFF
##281E6A1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6C
Deuteranopia (green-blind)
#002869
Tritanopia (blue-blind)
#003241
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #281e6a;
/* rgb */ color: rgb(40, 30, 106);
/* oklch */ color: oklch(30.1% 0.126 281.7);
Tailwind
colors: {
  custom: {
    50: '#6a5b95',
    500: '#281e6a',
    950: '#000000',
  },
}
SCSS
$custom: #281e6a;
$custom-light: #6a5b95;
$custom-dark: #000000;
JSON
{
  "hex": "#281e6a",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 106
  },
  "hsl": {
    "h": 247.895,
    "s": 55.882,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30139,
    "c": 0.12597,
    "h": 281.7
  },
  "luminance": 0.0242
}

Semantic roles & 50–950 ramp

primary
#281E6A
secondary
#939E45
accent
#DF49CB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #281E6A

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

Preview Lab → · Contrast checker → · Palette generator →

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