#281E7C#281E7C

#281E7C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.150 H 278.4°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#281E7C
RGBrgb(40, 30, 124)
HSLhsl(246, 61%, 30%)
HSVhsv(246, 76%, 49%)
CMYKcmyk(67.7%, 75.8%, 0%, 51.4%)
CIE-LABlab(19.37, 34.60, -51.46)
CIE-LCHlch(19.37, 62.01, 303.91°)
OKLaboklab(31.99% 0.022 -0.1486)
OKLCHoklch(31.99% 0.15 278.4)
XYZxyz(4.9763, 2.8345, 19.3497)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281E7C #727C1E
analogous
#1E437C #281E7C #571E7C
triadic
#281E7C #7C281E #1E7C28
tetradic
#281E7C #7C1E43 #727C1E #1E7C57
square
#281E7C #7C1E43 #727C1E #1E7C57
split-complementary
#281E7C #7C571E #437C1E
monochromatic
#080619 #18124B #281E7C #382AAD #5243D1

Accessibility & contrast

On white

13.40
#281E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#281E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281E7C
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281E7C#FFFFFF#000000##FFFFFF
##281E7C1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #281e7c;
/* rgb */ color: rgb(40, 30, 124);
/* oklch */ color: oklch(32.0% 0.150 278.4);
Tailwind
colors: {
  custom: {
    50: '#6e5ba3',
    500: '#281e7c',
    950: '#000000',
  },
}
SCSS
$custom: #281e7c;
$custom-light: #6e5ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#281e7c",
  "rgb": {
    "r": 40,
    "g": 30,
    "b": 124
  },
  "hsl": {
    "h": 246.383,
    "s": 61.039,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31988,
    "c": 0.15022,
    "h": 278.4
  },
  "luminance": 0.02835
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #281E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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