#281F92#281F92

#281F92 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.177 H 275.3°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#281F92
RGBrgb(40, 31, 146)
HSLhsl(245, 65%, 35%)
HSVhsv(245, 79%, 57%)
CMYKcmyk(72.6%, 78.8%, 0%, 42.7%)
CIE-LABlab(21.97, 41.37, -60.99)
CIE-LCHlch(21.97, 73.70, 304.15°)
OKLaboklab(34.53% 0.0163 -0.1764)
OKLCHoklch(34.53% 0.177 275.3)
XYZxyz(6.5517, 3.5058, 27.5200)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F92 #89921F
analogous
#1F4F92 #281F92 #621F92
triadic
#281F92 #92281F #1F9228
tetradic
#281F92 #921F4F #89921F #1F9262
square
#281F92 #921F4F #89921F #1F9262
split-complementary
#281F92 #92621F #4F921F
monochromatic
#0C0A2D #1A1460 #281F92 #362AC4 #5C51DA

Accessibility & contrast

On white

12.34
#281F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#281F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F92
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F92#FFFFFF#000000##FFFFFF
##281F921.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A95
Deuteranopia (green-blind)
#002F90
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #281f92;
/* rgb */ color: rgb(40, 31, 146);
/* oklch */ color: oklch(34.5% 0.177 275.3);
Tailwind
colors: {
  custom: {
    50: '#745db3',
    500: '#281f92',
    950: '#000000',
  },
}
SCSS
$custom: #281f92;
$custom-light: #745db3;
$custom-dark: #000000;
JSON
{
  "hex": "#281f92",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 146
  },
  "hsl": {
    "h": 244.696,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34534,
    "c": 0.17712,
    "h": 275.3
  },
  "luminance": 0.03506
}

Semantic roles & 50–950 ramp

primary
#281F92
secondary
#B5BD50
accent
#E840DB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #281F92

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

Preview Lab → · Contrast checker → · Palette generator →

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