#281F7E#281F7E

#281F7E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.152 H 277.9°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#281F7E
RGBrgb(40, 31, 126)
HSLhsl(246, 61%, 31%)
HSVhsv(246, 75%, 49%)
CMYKcmyk(68.3%, 75.4%, 0%, 50.6%)
CIE-LABlab(19.79, 34.69, -52.04)
CIE-LCHlch(19.79, 62.54, 303.68°)
OKLaboklab(32.35% 0.0209 -0.1503)
OKLCHoklch(32.35% 0.152 277.9)
XYZxyz(5.1297, 2.9370, 20.0312)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F7E #757E1F
analogous
#1F457E #281F7E #571F7E
triadic
#281F7E #7E281F #1F7E28
tetradic
#281F7E #7E1F45 #757E1F #1F7E57
square
#281F7E #7E1F45 #757E1F #1F7E57
split-complementary
#281F7E #7E571F #457E1F
monochromatic
#09071C #18134D #281F7E #382BAF #5346D1

Accessibility & contrast

On white

13.23
#281F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#281F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F7E
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F7E#FFFFFF#000000##FFFFFF
##281F7E1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #281f7e;
/* rgb */ color: rgb(40, 31, 126);
/* oklch */ color: oklch(32.4% 0.152 277.9);
Tailwind
colors: {
  custom: {
    50: '#6f5ca4',
    500: '#281f7e',
    950: '#000000',
  },
}
SCSS
$custom: #281f7e;
$custom-light: #6f5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#281f7e",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 245.684,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32351,
    "c": 0.15174,
    "h": 277.9
  },
  "luminance": 0.02937
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #281F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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