#281F6F#281F6F

#281F6F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.8% C 0.132 H 280.4°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#281F6F
RGBrgb(40, 31, 111)
HSLhsl(247, 56%, 28%)
HSVhsv(247, 72%, 44%)
CMYKcmyk(64%, 72.1%, 0%, 56.5%)
CIE-LABlab(18.27, 29.52, -44.92)
CIE-LCHlch(18.27, 53.75, 303.32°)
OKLaboklab(30.8% 0.0238 -0.1294)
OKLCHoklch(30.8% 0.132 280.4)
XYZxyz(4.2334, 2.5785, 15.3105)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F6F #666F1F
analogous
#1F3E6F #281F6F #501F6F
triadic
#281F6F #6F281F #1F6F28
tetradic
#281F6F #6F1F3E #666F1F #1F6F50
square
#281F6F #6F1F3E #666F1F #1F6F50
split-complementary
#281F6F #6F501F #3E6F1F
monochromatic
#090718 #17123F #281F6F #392C9F #4F3FC9

Accessibility & contrast

On white

13.85
#281F6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281F6F
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F6F#FFFFFF#000000##FFFFFF
##281F6F1.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#002A6D
Tritanopia (blue-blind)
#003444
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #281f6f;
/* rgb */ color: rgb(40, 31, 111);
/* oklch */ color: oklch(30.8% 0.132 280.4);
Tailwind
colors: {
  custom: {
    50: '#6b5b99',
    500: '#281f6f',
    950: '#000000',
  },
}
SCSS
$custom: #281f6f;
$custom-light: #6b5b99;
$custom-dark: #000000;
JSON
{
  "hex": "#281f6f",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 111
  },
  "hsl": {
    "h": 246.75,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30803,
    "c": 0.13162,
    "h": 280.4
  },
  "luminance": 0.02579
}

Semantic roles & 50–950 ramp

primary
#281F6F
secondary
#99A347
accent
#E048CF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #281F6F

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

Preview Lab → · Contrast checker → · Palette generator →

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