#281A6F#281A6F

#281A6F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.138 H 281.7°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#281A6F
RGBrgb(40, 26, 111)
HSLhsl(250, 62%, 27%)
HSVhsv(250, 77%, 44%)
CMYKcmyk(64%, 76.6%, 0%, 56.5%)
CIE-LABlab(17.17, 32.58, -46.73)
CIE-LCHlch(17.17, 56.96, 304.89°)
OKLaboklab(30.02% 0.028 -0.1347)
OKLCHoklch(30.02% 0.138 281.7)
XYZxyz(4.1128, 2.3373, 15.2703)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A6F #616F1A
analogous
#1A376F #281A6F #531A6F
triadic
#281A6F #6F281A #1A6F28
tetradic
#281A6F #6F1A37 #616F1A #1A6F53
square
#281A6F #6F1A37 #616F1A #1A6F53
split-complementary
#281A6F #6F531A #376F1A
monochromatic
#090619 #160E3D #281A6F #3A26A1 #4E34CF

Accessibility & contrast

On white

14.31
#281A6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#281A6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281A6F
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A6F#FFFFFF#000000##FFFFFF
##281A6F1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #281a6f;
/* rgb */ color: rgb(40, 26, 111);
/* oklch */ color: oklch(30.0% 0.138 281.7);
Tailwind
colors: {
  custom: {
    50: '#6c5899',
    500: '#281a6f',
    950: '#000000',
  },
}
SCSS
$custom: #281a6f;
$custom-light: #6c5899;
$custom-dark: #000000;
JSON
{
  "hex": "#281a6f",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 111
  },
  "hsl": {
    "h": 249.882,
    "s": 62.044,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30016,
    "c": 0.1376,
    "h": 281.7
  },
  "luminance": 0.02338
}

Semantic roles & 50–950 ramp

primary
#281A6F
secondary
#94A441
accent
#E543CA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #281A6F

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

Preview Lab → · Contrast checker → · Palette generator →

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