#281F7A#281F7A

#281F7A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.146 H 278.5°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#281F7A
RGBrgb(40, 31, 122)
HSLhsl(246, 59%, 30%)
HSVhsv(246, 75%, 48%)
CMYKcmyk(67.2%, 74.6%, 0%, 52.2%)
CIE-LABlab(19.37, 33.32, -50.18)
CIE-LCHlch(19.37, 60.24, 303.59°)
OKLaboklab(31.93% 0.0218 -0.1448)
OKLCHoklch(31.93% 0.146 278.5)
XYZxyz(4.8768, 2.8358, 18.6990)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F7A #717A1F
analogous
#1F447A #281F7A #551F7A
triadic
#281F7A #7A281F #1F7A28
tetradic
#281F7A #7A1F44 #717A1F #1F7A55
square
#281F7A #7A1F44 #717A1F #1F7A55
split-complementary
#281F7A #7A551F #447A1F
monochromatic
#080618 #181349 #281F7A #382BAB #5244CF

Accessibility & contrast

On white

13.40
#281F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#281F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F7A
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F7A#FFFFFF#000000##FFFFFF
##281F7A1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #281f7a;
/* rgb */ color: rgb(40, 31, 122);
/* oklch */ color: oklch(31.9% 0.146 278.5);
Tailwind
colors: {
  custom: {
    50: '#6e5ca1',
    500: '#281f7a',
    950: '#000000',
  },
}
SCSS
$custom: #281f7a;
$custom-light: #6e5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#281f7a",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 245.934,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.31929,
    "c": 0.14647,
    "h": 278.5
  },
  "luminance": 0.02836
}

Semantic roles & 50–950 ramp

primary
#281F7A
secondary
#A3AD47
accent
#E345D3
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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