#281E6D#281E6D

#281E6D is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.4% C 0.130 H 281.1°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#281E6D
RGBrgb(40, 30, 109)
HSLhsl(248, 57%, 27%)
HSVhsv(248, 72%, 43%)
CMYKcmyk(63.3%, 72.5%, 0%, 57.3%)
CIE-LABlab(17.84, 29.46, -44.31)
CIE-LCHlch(17.84, 53.21, 303.62°)
OKLaboklab(30.44% 0.0251 -0.1277)
OKLCHoklch(30.44% 0.13 281.1)
XYZxyz(4.0988, 2.4835, 14.7284)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E6D #636D1E
analogous
#1E3C6D #281E6D #501E6D
triadic
#281E6D #6D281E #1E6D28
tetradic
#281E6D #6D1E3C #636D1E #1E6D50
square
#281E6D #6D1E3C #636D1E #1E6D50
split-complementary
#281E6D #6D501E #3C6D1E
monochromatic
#090718 #16113D #281E6D #3A2B9D #4E3CC9

Accessibility & contrast

On white

14.03
#281E6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#281E6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E6D
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E6D#FFFFFF#000000##FFFFFF
##281E6D1.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6F
Deuteranopia (green-blind)
#00296B
Tritanopia (blue-blind)
#003343
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #281e6d;
/* rgb */ color: rgb(40, 30, 109);
/* oklch */ color: oklch(30.4% 0.130 281.1);
Tailwind
colors: {
  custom: {
    50: '#6b5b98',
    500: '#281e6d',
    950: '#000000',
  },
}
SCSS
$custom: #281e6d;
$custom-light: #6b5b98;
$custom-dark: #000000;
JSON
{
  "hex": "#281e6d",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 109
  },
  "hsl": {
    "h": 247.595,
    "s": 56.835,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30438,
    "c": 0.13011,
    "h": 281.1
  },
  "luminance": 0.02484
}

Semantic roles & 50–950 ramp

primary
#281E6D
secondary
#96A145
accent
#E048CD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #281E6D

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

Preview Lab → · Contrast checker → · Palette generator →

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