#281F8C#281F8C

#281F8C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.170 H 276.0°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#281F8C
RGBrgb(40, 31, 140)
HSLhsl(245, 64%, 34%)
HSVhsv(245, 78%, 55%)
CMYKcmyk(71.4%, 77.9%, 0%, 45.1%)
CIE-LABlab(21.30, 39.39, -58.37)
CIE-LCHlch(21.30, 70.42, 304.01°)
OKLaboklab(33.87% 0.0177 -0.1687)
OKLCHoklch(33.87% 0.17 276)
XYZxyz(6.0971, 3.3240, 25.1261)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F8C #838C1F
analogous
#1F4C8C #281F8C #5E1F8C
triadic
#281F8C #8C281F #1F8C28
tetradic
#281F8C #8C1F4C #838C1F #1F8C5E
square
#281F8C #8C1F4C #838C1F #1F8C5E
split-complementary
#281F8C #8C5E1F #4C8C1F
monochromatic
#0B0928 #1A145A #281F8C #362ABE #594ED8

Accessibility & contrast

On white

12.61
#281F8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#281F8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F8C
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F8C#FFFFFF#000000##FFFFFF
##281F8C1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #281f8c;
/* rgb */ color: rgb(40, 31, 140);
/* oklch */ color: oklch(33.9% 0.170 276.0);
Tailwind
colors: {
  custom: {
    50: '#725daf',
    500: '#281f8c',
    950: '#000000',
  },
}
SCSS
$custom: #281f8c;
$custom-light: #725daf;
$custom-dark: #000000;
JSON
{
  "hex": "#281f8c",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 140
  },
  "hsl": {
    "h": 244.954,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33867,
    "c": 0.16966,
    "h": 276
  },
  "luminance": 0.03325
}

Semantic roles & 50–950 ramp

primary
#281F8C
secondary
#B1BB4C
accent
#E741D9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #281F8C

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

Preview Lab → · Contrast checker → · Palette generator →

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