#281F6B#281F6B

#281F6B is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.4% C 0.126 H 281.2°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#281F6B
RGBrgb(40, 31, 107)
HSLhsl(247, 55%, 27%)
HSVhsv(247, 71%, 42%)
CMYKcmyk(62.6%, 71%, 0%, 58%)
CIE-LABlab(17.88, 28.13, -42.95)
CIE-LCHlch(17.88, 51.34, 303.22°)
OKLaboklab(30.41% 0.0245 -0.1237)
OKLCHoklch(30.41% 0.126 281.2)
XYZxyz(4.0181, 2.4923, 14.1764)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F6B #626B1F
analogous
#1F3C6B #281F6B #4E1F6B
triadic
#281F6B #6B281F #1F6B28
tetradic
#281F6B #6B1F3C #626B1F #1F6B4E
square
#281F6B #6B1F3C #626B1F #1F6B4E
split-complementary
#281F6B #6B4E1F #3C6B1F
monochromatic
#090718 #16113C #281F6B #3A2D9A #4E3DC7

Accessibility & contrast

On white

14.01
#281F6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#281F6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F6B
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F6B#FFFFFF#000000##FFFFFF
##281F6B1.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6D
Deuteranopia (green-blind)
#00296A
Tritanopia (blue-blind)
#003342
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #281f6b;
/* rgb */ color: rgb(40, 31, 107);
/* oklch */ color: oklch(30.4% 0.126 281.2);
Tailwind
colors: {
  custom: {
    50: '#6b5b96',
    500: '#281f6b',
    950: '#000000',
  },
}
SCSS
$custom: #281f6b;
$custom-light: #6b5b96;
$custom-dark: #000000;
JSON
{
  "hex": "#281f6b",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 107
  },
  "hsl": {
    "h": 247.105,
    "s": 55.072,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30407,
    "c": 0.12607,
    "h": 281.2
  },
  "luminance": 0.02493
}

Semantic roles & 50–950 ramp

primary
#281F6B
secondary
#959F47
accent
#DE49CD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #281F6B

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

Preview Lab → · Contrast checker → · Palette generator →

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