#281E8A#281E8A

#281E8A is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.168 H 276.4°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#281E8A
RGBrgb(40, 30, 138)
HSLhsl(246, 64%, 33%)
HSVhsv(246, 78%, 54%)
CMYKcmyk(71%, 78.3%, 0%, 45.9%)
CIE-LABlab(20.88, 39.28, -57.80)
CIE-LCHlch(20.88, 69.89, 304.20°)
OKLaboklab(33.51% 0.0188 -0.1671)
OKLCHoklch(33.51% 0.168 276.4)
XYZxyz(5.9253, 3.2141, 24.3479)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E8A #808A1E
analogous
#1E4A8A #281E8A #5E1E8A
triadic
#281E8A #8A281E #1E8A28
tetradic
#281E8A #8A1E4A #808A1E #1E8A5E
square
#281E8A #8A1E4A #808A1E #1E8A5E
split-complementary
#281E8A #8A5E1E #4A8A1E
monochromatic
#0B0825 #191358 #281E8A #3729BC #584BD8

Accessibility & contrast

On white

12.78
#281E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#281E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E8A
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E8A#FFFFFF#000000##FFFFFF
##281E8A1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#002D88
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #281e8a;
/* rgb */ color: rgb(40, 30, 138);
/* oklch */ color: oklch(33.5% 0.168 276.4);
Tailwind
colors: {
  custom: {
    50: '#725cad',
    500: '#281e8a',
    950: '#000000',
  },
}
SCSS
$custom: #281e8a;
$custom-light: #725cad;
$custom-dark: #000000;
JSON
{
  "hex": "#281e8a",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 245.556,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33509,
    "c": 0.16813,
    "h": 276.4
  },
  "luminance": 0.03215
}

Semantic roles & 50–950 ramp

primary
#281E8A
secondary
#B0BA4A
accent
#E741D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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