#281F93#281F93

#281F93 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.178 H 275.2°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#281F93
RGBrgb(40, 31, 147)
HSLhsl(245, 65%, 35%)
HSVhsv(245, 79%, 58%)
CMYKcmyk(72.8%, 78.9%, 0%, 42.4%)
CIE-LABlab(22.08, 41.69, -61.43)
CIE-LCHlch(22.08, 74.24, 304.17°)
OKLaboklab(34.65% 0.0161 -0.1776)
OKLCHoklch(34.65% 0.178 275.2)
XYZxyz(6.6298, 3.5370, 27.9314)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F93 #8A931F
analogous
#1F5093 #281F93 #621F93
triadic
#281F93 #93281F #1F9328
tetradic
#281F93 #931F50 #8A931F #1F9362
square
#281F93 #931F50 #8A931F #1F9362
split-complementary
#281F93 #93621F #50931F
monochromatic
#0C0A2E #1A1460 #281F93 #362AC6 #5D52DA

Accessibility & contrast

On white

12.30
#281F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#281F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F93
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F93#FFFFFF#000000##FFFFFF
##281F931.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A96
Deuteranopia (green-blind)
#003091
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #281f93;
/* rgb */ color: rgb(40, 31, 147);
/* oklch */ color: oklch(34.6% 0.178 275.2);
Tailwind
colors: {
  custom: {
    50: '#745db4',
    500: '#281f93',
    950: '#000000',
  },
}
SCSS
$custom: #281f93;
$custom-light: #745db4;
$custom-dark: #000000;
JSON
{
  "hex": "#281f93",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 147
  },
  "hsl": {
    "h": 244.655,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34646,
    "c": 0.17836,
    "h": 275.2
  },
  "luminance": 0.03538
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #281F93

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

Preview Lab → · Contrast checker → · Palette generator →

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