#281F80#281F80

#281F80 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.154 H 277.6°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#281F80
RGBrgb(40, 31, 128)
HSLhsl(246, 61%, 31%)
HSVhsv(246, 76%, 50%)
CMYKcmyk(68.8%, 75.8%, 0%, 49.8%)
CIE-LABlab(20.00, 35.37, -52.96)
CIE-LCHlch(20.00, 63.69, 303.73°)
OKLaboklab(32.56% 0.0205 -0.153)
OKLCHoklch(32.56% 0.154 277.6)
XYZxyz(5.2601, 2.9892, 20.7177)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F80 #77801F
analogous
#1F4680 #281F80 #581F80
triadic
#281F80 #80281F #1F8028
tetradic
#281F80 #801F46 #77801F #1F8058
square
#281F80 #801F46 #77801F #1F8058
split-complementary
#281F80 #80581F #46801F
monochromatic
#09071D #19134F #281F80 #372BB1 #5447D2

Accessibility & contrast

On white

13.14
#281F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#281F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F80
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F80#FFFFFF#000000##FFFFFF
##281F801.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002C7E
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #281f80;
/* rgb */ color: rgb(40, 31, 128);
/* oklch */ color: oklch(32.6% 0.154 277.6);
Tailwind
colors: {
  custom: {
    50: '#6f5ca6',
    500: '#281f80',
    950: '#000000',
  },
}
SCSS
$custom: #281f80;
$custom-light: #6f5ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#281f80",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 245.567,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32564,
    "c": 0.15435,
    "h": 277.6
  },
  "luminance": 0.0299
}

Semantic roles & 50–950 ramp

primary
#281F80
secondary
#A9B348
accent
#E444D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281F80

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

Preview Lab → · Contrast checker → · Palette generator →

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