#281A7B#281A7B

#281A7B is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.153 H 279.4°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#281A7B
RGBrgb(40, 26, 123)
HSLhsl(249, 65%, 29%)
HSVhsv(249, 79%, 48%)
CMYKcmyk(67.5%, 78.9%, 0%, 51.8%)
CIE-LABlab(18.45, 36.56, -52.34)
CIE-LCHlch(18.45, 63.84, 304.93°)
OKLaboklab(31.31% 0.0249 -0.1511)
OKLCHoklch(31.31% 0.153 279.4)
XYZxyz(4.8185, 2.6196, 18.9868)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A7B #6D7B1A
analogous
#1A3D7B #281A7B #591A7B
triadic
#281A7B #7B281A #1A7B28
tetradic
#281A7B #7B1A3D #6D7B1A #1A7B59
square
#281A7B #7B1A3D #6D7B1A #1A7B59
split-complementary
#281A7B #7B591A #3D7B1A
monochromatic
#080519 #180F48 #281A7B #3825AE #503AD5

Accessibility & contrast

On white

13.78
#281A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#281A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A7B
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A7B#FFFFFF#000000##FFFFFF
##281A7B1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002979
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #281a7b;
/* rgb */ color: rgb(40, 26, 123);
/* oklch */ color: oklch(31.3% 0.153 279.4);
Tailwind
colors: {
  custom: {
    50: '#6f59a2',
    500: '#281a7b',
    950: '#000000',
  },
}
SCSS
$custom: #281a7b;
$custom-light: #6f59a2;
$custom-dark: #000000;
JSON
{
  "hex": "#281a7b",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 248.66,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31308,
    "c": 0.15315,
    "h": 279.4
  },
  "luminance": 0.0262
}

Semantic roles & 50–950 ramp

primary
#281A7B
secondary
#9FAF42
accent
#E840D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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