#281E7A#281E7A

#281E7A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.148 H 278.8°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#281E7A
RGBrgb(40, 30, 122)
HSLhsl(247, 61%, 30%)
HSVhsv(247, 75%, 48%)
CMYKcmyk(67.2%, 75.4%, 0%, 52.2%)
CIE-LABlab(19.16, 33.92, -50.53)
CIE-LCHlch(19.16, 60.86, 303.87°)
OKLaboklab(31.78% 0.0225 -0.1459)
OKLCHoklch(31.78% 0.148 278.8)
XYZxyz(4.8511, 2.7844, 18.6904)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E7A #707A1E
analogous
#1E427A #281E7A #561E7A
triadic
#281E7A #7A281E #1E7A28
tetradic
#281E7A #7A1E42 #707A1E #1E7A56
square
#281E7A #7A1E42 #707A1E #1E7A56
split-complementary
#281E7A #7A561E #427A1E
monochromatic
#080619 #181249 #281E7A #382AAB #5142D0

Accessibility & contrast

On white

13.49
#281E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#281E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E7A
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E7A#FFFFFF#000000##FFFFFF
##281E7A1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #281e7a;
/* rgb */ color: rgb(40, 30, 122);
/* oklch */ color: oklch(31.8% 0.148 278.8);
Tailwind
colors: {
  custom: {
    50: '#6e5ba1',
    500: '#281e7a',
    950: '#000000',
  },
}
SCSS
$custom: #281e7a;
$custom-light: #6e5ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#281e7a",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 246.522,
    "s": 60.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31776,
    "c": 0.14759,
    "h": 278.8
  },
  "luminance": 0.02785
}

Semantic roles & 50–950 ramp

primary
#281E7A
secondary
#A2AE46
accent
#E444D2
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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