#281F8B#281F8B

#281F8B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.168 H 276.1°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#281F8B
RGBrgb(40, 31, 139)
HSLhsl(245, 64%, 33%)
HSVhsv(245, 78%, 55%)
CMYKcmyk(71.2%, 77.7%, 0%, 45.5%)
CIE-LABlab(21.19, 39.06, -57.93)
CIE-LCHlch(21.19, 69.86, 303.99°)
OKLaboklab(33.76% 0.018 -0.1674)
OKLCHoklch(33.76% 0.168 276.1)
XYZxyz(6.0237, 3.2946, 24.7396)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F8B #828B1F
analogous
#1F4C8B #281F8B #5E1F8B
triadic
#281F8B #8B281F #1F8B28
tetradic
#281F8B #8B1F4C #828B1F #1F8B5E
square
#281F8B #8B1F4C #828B1F #1F8B5E
split-complementary
#281F8B #8B5E1F #4C8B1F
monochromatic
#0B0927 #1A1459 #281F8B #362ABD #594DD7

Accessibility & contrast

On white

12.66
#281F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#281F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F8B
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F8B#FFFFFF#000000##FFFFFF
##281F8B1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002E89
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #281f8b;
/* rgb */ color: rgb(40, 31, 139);
/* oklch */ color: oklch(33.8% 0.168 276.1);
Tailwind
colors: {
  custom: {
    50: '#725dae',
    500: '#281f8b',
    950: '#000000',
  },
}
SCSS
$custom: #281f8b;
$custom-light: #725dae;
$custom-dark: #000000;
JSON
{
  "hex": "#281f8b",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 245,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33757,
    "c": 0.1684,
    "h": 276.1
  },
  "luminance": 0.03295
}

Semantic roles & 50–950 ramp

primary
#281F8B
secondary
#B1BA4C
accent
#E741D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #281F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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