#281F9E#281F9E

#281F9E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.192 H 274.0°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#281F9E
RGBrgb(40, 31, 158)
HSLhsl(244, 67%, 37%)
HSVhsv(244, 80%, 62%)
CMYKcmyk(74.7%, 80.4%, 0%, 38%)
CIE-LABlab(23.33, 45.24, -66.11)
CIE-LCHlch(23.33, 80.11, 304.39°)
OKLaboklab(35.89% 0.0134 -0.1912)
OKLCHoklch(35.89% 0.192 274)
XYZxyz(7.5346, 3.8989, 32.6966)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F9E #959E1F
analogous
#1F569E #281F9E #681F9E
triadic
#281F9E #9E281F #1F9E28
tetradic
#281F9E #9E1F56 #959E1F #1F9E68
square
#281F9E #9E1F56 #959E1F #1F9E68
split-complementary
#281F9E #9E681F #569E1F
monochromatic
#0E0B38 #1B156B #281F9E #3529D1 #6259DE

Accessibility & contrast

On white

11.80
#281F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#281F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F9E
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F9E#FFFFFF#000000##FFFFFF
##281F9E1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00329C
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #281f9e;
/* rgb */ color: rgb(40, 31, 158);
/* oklch */ color: oklch(35.9% 0.192 274.0);
Tailwind
colors: {
  custom: {
    50: '#765ebc',
    500: '#281f9e',
    950: '#000000',
  },
}
SCSS
$custom: #281f9e;
$custom-light: #765ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#281f9e",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 244.252,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.35893,
    "c": 0.19171,
    "h": 274
  },
  "luminance": 0.039
}

Semantic roles & 50–950 ramp

primary
#281F9E
secondary
#BBC256
accent
#EA3EDE
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #281F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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