#281F6D#281F6D

#281F6D is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.6% C 0.129 H 280.8°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#281F6D
RGBrgb(40, 31, 109)
HSLhsl(247, 56%, 27%)
HSVhsv(247, 72%, 43%)
CMYKcmyk(63.3%, 71.6%, 0%, 57.3%)
CIE-LABlab(18.08, 28.83, -43.94)
CIE-LCHlch(18.08, 52.55, 303.27°)
OKLaboklab(30.6% 0.0242 -0.1266)
OKLCHoklch(30.6% 0.129 280.8)
XYZxyz(4.1245, 2.5349, 14.7370)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F6D #646D1F
analogous
#1F3D6D #281F6D #4F1F6D
triadic
#281F6D #6D281F #1F6D28
tetradic
#281F6D #6D1F3D #646D1F #1F6D4F
square
#281F6D #6D1F3D #646D1F #1F6D4F
split-complementary
#281F6D #6D4F1F #3D6D1F
monochromatic
#090718 #17113D #281F6D #392D9D #4E3EC8

Accessibility & contrast

On white

13.93
#281F6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#281F6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F6D
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F6D#FFFFFF#000000##FFFFFF
##281F6D1.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281f6d;
/* rgb */ color: rgb(40, 31, 109);
/* oklch */ color: oklch(30.6% 0.129 280.8);
Tailwind
colors: {
  custom: {
    50: '#6b5b98',
    500: '#281f6d',
    950: '#000000',
  },
}
SCSS
$custom: #281f6d;
$custom-light: #6b5b98;
$custom-dark: #000000;
JSON
{
  "hex": "#281f6d",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 109
  },
  "hsl": {
    "h": 246.923,
    "s": 55.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30604,
    "c": 0.12886,
    "h": 280.8
  },
  "luminance": 0.02535
}

Semantic roles & 50–950 ramp

primary
#281F6D
secondary
#97A147
accent
#DF49CE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #281F6D

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

Preview Lab → · Contrast checker → · Palette generator →

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