#281F98#281F98

#281F98 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.184 H 274.6°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#281F98
RGBrgb(40, 31, 152)
HSLhsl(244, 66%, 36%)
HSVhsv(244, 80%, 60%)
CMYKcmyk(73.7%, 79.6%, 0%, 40.4%)
CIE-LABlab(22.64, 43.32, -63.57)
CIE-LCHlch(22.64, 76.93, 304.27°)
OKLaboklab(35.21% 0.0149 -0.1839)
OKLCHoklch(35.21% 0.184 274.6)
XYZxyz(7.0307, 3.6974, 30.0428)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F98 #8F981F
analogous
#1F5298 #281F98 #641F98
triadic
#281F98 #98281F #1F9828
tetradic
#281F98 #981F52 #8F981F #1F9864
square
#281F98 #981F52 #8F981F #1F9864
split-complementary
#281F98 #98641F #52981F
monochromatic
#0D0A32 #1B1565 #281F98 #3529CB #5F55DC

Accessibility & contrast

On white

12.07
#281F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#281F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F98
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F98#FFFFFF#000000##FFFFFF
##281F981.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9B
Deuteranopia (green-blind)
#003096
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #281f98;
/* rgb */ color: rgb(40, 31, 152);
/* oklch */ color: oklch(35.2% 0.184 274.6);
Tailwind
colors: {
  custom: {
    50: '#755eb8',
    500: '#281f98',
    950: '#000000',
  },
}
SCSS
$custom: #281f98;
$custom-light: #755eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#281f98",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 244.463,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3521,
    "c": 0.18447,
    "h": 274.6
  },
  "luminance": 0.03698
}

Semantic roles & 50–950 ramp

primary
#281F98
secondary
#B8C053
accent
#E93FDC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281F98

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

Preview Lab → · Contrast checker → · Palette generator →

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