#281F70#281F70

#281F70 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.133 H 280.2°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#281F70
RGBrgb(40, 31, 112)
HSLhsl(247, 57%, 28%)
HSVhsv(247, 72%, 44%)
CMYKcmyk(64.3%, 72.3%, 0%, 56.1%)
CIE-LABlab(18.37, 29.87, -45.40)
CIE-LCHlch(18.37, 54.35, 303.34°)
OKLaboklab(30.9% 0.0237 -0.1309)
OKLCHoklch(30.9% 0.133 280.2)
XYZxyz(4.2888, 2.6006, 15.6021)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F70 #67701F
analogous
#1F3E70 #281F70 #501F70
triadic
#281F70 #70281F #1F7028
tetradic
#281F70 #701F3E #67701F #1F7050
square
#281F70 #701F3E #67701F #1F7050
split-complementary
#281F70 #70501F #3E701F
monochromatic
#090718 #171240 #281F70 #392CA0 #4F3FCA

Accessibility & contrast

On white

13.81
#281F70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#281F70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F70
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F70#FFFFFF#000000##FFFFFF
##281F701.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#002A6E
Tritanopia (blue-blind)
#003545
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #281f70;
/* rgb */ color: rgb(40, 31, 112);
/* oklch */ color: oklch(30.9% 0.133 280.2);
Tailwind
colors: {
  custom: {
    50: '#6c5c9a',
    500: '#281f70',
    950: '#000000',
  },
}
SCSS
$custom: #281f70;
$custom-light: #6c5c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#281f70",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 112
  },
  "hsl": {
    "h": 246.667,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30904,
    "c": 0.13299,
    "h": 280.2
  },
  "luminance": 0.02601
}

Semantic roles & 50–950 ramp

primary
#281F70
secondary
#9AA447
accent
#E048CF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #281F70

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

Preview Lab → · Contrast checker → · Palette generator →

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