#281E8C#281E8C

#281E8C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.171 H 276.1°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#281E8C
RGBrgb(40, 30, 140)
HSLhsl(245, 65%, 33%)
HSVhsv(245, 79%, 55%)
CMYKcmyk(71.4%, 78.6%, 0%, 45.1%)
CIE-LABlab(21.10, 39.94, -58.69)
CIE-LCHlch(21.10, 70.99, 304.24°)
OKLaboklab(33.73% 0.0183 -0.1696)
OKLCHoklch(33.73% 0.171 276.1)
XYZxyz(6.0714, 3.2725, 25.1176)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E8C #828C1E
analogous
#1E4B8C #281E8C #5F1E8C
triadic
#281E8C #8C281E #1E8C28
tetradic
#281E8C #8C1E4B #828C1E #1E8C5F
square
#281E8C #8C1E4B #828C1E #1E8C5F
split-complementary
#281E8C #8C5F1E #4B8C1E
monochromatic
#0B0827 #1A135A #281E8C #3629BE #594CD9

Accessibility & contrast

On white

12.69
#281E8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#281E8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E8C
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E8C#FFFFFF#000000##FFFFFF
##281E8C1.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #281e8c;
/* rgb */ color: rgb(40, 30, 140);
/* oklch */ color: oklch(33.7% 0.171 276.1);
Tailwind
colors: {
  custom: {
    50: '#725caf',
    500: '#281e8c',
    950: '#000000',
  },
}
SCSS
$custom: #281e8c;
$custom-light: #725caf;
$custom-dark: #000000;
JSON
{
  "hex": "#281e8c",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 140
  },
  "hsl": {
    "h": 245.455,
    "s": 64.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33731,
    "c": 0.17063,
    "h": 276.1
  },
  "luminance": 0.03273
}

Semantic roles & 50–950 ramp

primary
#281E8C
secondary
#B1BB4B
accent
#E840D8
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #281E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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