#281F81#281F81

#281F81 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.156 H 277.5°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#281F81
RGBrgb(40, 31, 129)
HSLhsl(246, 61%, 31%)
HSVhsv(246, 76%, 51%)
CMYKcmyk(69%, 76%, 0%, 49.4%)
CIE-LABlab(20.11, 35.71, -53.42)
CIE-LCHlch(20.11, 64.26, 303.76°)
OKLaboklab(32.67% 0.0203 -0.1543)
OKLCHoklch(32.67% 0.156 277.5)
XYZxyz(5.3262, 3.0156, 21.0660)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F81 #78811F
analogous
#1F4781 #281F81 #591F81
triadic
#281F81 #81281F #1F8128
tetradic
#281F81 #811F47 #78811F #1F8159
square
#281F81 #811F47 #78811F #1F8159
split-complementary
#281F81 #81591F #47811F
monochromatic
#09071E #191350 #281F81 #372BB2 #5447D3

Accessibility & contrast

On white

13.10
#281F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281F81
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F81#FFFFFF#000000##FFFFFF
##281F811.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #281f81;
/* rgb */ color: rgb(40, 31, 129);
/* oklch */ color: oklch(32.7% 0.156 277.5);
Tailwind
colors: {
  custom: {
    50: '#6f5ca7',
    500: '#281f81',
    950: '#000000',
  },
}
SCSS
$custom: #281f81;
$custom-light: #6f5ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#281f81",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 245.51,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3267,
    "c": 0.15564,
    "h": 277.5
  },
  "luminance": 0.03016
}

Semantic roles & 50–950 ramp

primary
#281F81
secondary
#AAB448
accent
#E443D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #281F81

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

Preview Lab → · Contrast checker → · Palette generator →

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