#281E7B#281E7B

#281E7B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.149 H 278.6°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#281E7B
RGBrgb(40, 30, 123)
HSLhsl(246, 61%, 30%)
HSVhsv(246, 76%, 48%)
CMYKcmyk(67.5%, 75.6%, 0%, 51.8%)
CIE-LABlab(19.26, 34.26, -51.00)
CIE-LCHlch(19.26, 61.44, 303.89°)
OKLaboklab(31.88% 0.0223 -0.1472)
OKLCHoklch(31.88% 0.149 278.6)
XYZxyz(4.9133, 2.8093, 19.0184)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E7B #717B1E
analogous
#1E427B #281E7B #571E7B
triadic
#281E7B #7B281E #1E7B28
tetradic
#281E7B #7B1E42 #717B1E #1E7B57
square
#281E7B #7B1E42 #717B1E #1E7B57
split-complementary
#281E7B #7B571E #427B1E
monochromatic
#080619 #18124A #281E7B #382AAC #5242D1

Accessibility & contrast

On white

13.44
#281E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281E7B
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E7B#FFFFFF#000000##FFFFFF
##281E7B1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #281e7b;
/* rgb */ color: rgb(40, 30, 123);
/* oklch */ color: oklch(31.9% 0.149 278.6);
Tailwind
colors: {
  custom: {
    50: '#6e5ba2',
    500: '#281e7b',
    950: '#000000',
  },
}
SCSS
$custom: #281e7b;
$custom-light: #6e5ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#281e7b",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 246.452,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.31882,
    "c": 0.14891,
    "h": 278.6
  },
  "luminance": 0.0281
}

Semantic roles & 50–950 ramp

primary
#281E7B
secondary
#A3AE46
accent
#E444D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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