#281F79#281F79

#281F79 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.145 H 278.7°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#281F79
RGBrgb(40, 31, 121)
HSLhsl(246, 59%, 30%)
HSVhsv(246, 74%, 47%)
CMYKcmyk(66.9%, 74.4%, 0%, 52.5%)
CIE-LABlab(19.27, 32.98, -49.71)
CIE-LCHlch(19.27, 59.65, 303.56°)
OKLaboklab(31.83% 0.022 -0.1435)
OKLCHoklch(31.83% 0.145 278.7)
XYZxyz(4.8151, 2.8112, 18.3743)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F79 #70791F
analogous
#1F4379 #281F79 #551F79
triadic
#281F79 #79281F #1F7928
tetradic
#281F79 #791F43 #70791F #1F7955
square
#281F79 #791F43 #70791F #1F7955
split-complementary
#281F79 #79551F #43791F
monochromatic
#080618 #181348 #281F79 #382BAA #5143CF

Accessibility & contrast

On white

13.44
#281F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#281F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F79
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F79#FFFFFF#000000##FFFFFF
##281F791.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #281f79;
/* rgb */ color: rgb(40, 31, 121);
/* oklch */ color: oklch(31.8% 0.145 278.7);
Tailwind
colors: {
  custom: {
    50: '#6e5ca1',
    500: '#281f79',
    950: '#000000',
  },
}
SCSS
$custom: #281f79;
$custom-light: #6e5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#281f79",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 246,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31825,
    "c": 0.14514,
    "h": 278.7
  },
  "luminance": 0.02812
}

Semantic roles & 50–950 ramp

primary
#281F79
secondary
#A2AC47
accent
#E245D3
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281F79

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

Preview Lab → · Contrast checker → · Palette generator →

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