#281F7D#281F7D

#281F7D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.150 H 278.1°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#281F7D
RGBrgb(40, 31, 125)
HSLhsl(246, 60%, 31%)
HSVhsv(246, 75%, 49%)
CMYKcmyk(68%, 75.2%, 0%, 51%)
CIE-LABlab(19.69, 34.35, -51.58)
CIE-LCHlch(19.69, 61.97, 303.66°)
OKLaboklab(32.25% 0.0211 -0.1489)
OKLCHoklch(32.25% 0.15 278.1)
XYZxyz(5.0655, 2.9113, 19.6931)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F7D #747D1F
analogous
#1F457D #281F7D #571F7D
triadic
#281F7D #7D281F #1F7D28
tetradic
#281F7D #7D1F45 #747D1F #1F7D57
square
#281F7D #7D1F45 #747D1F #1F7D57
split-complementary
#281F7D #7D571F #457D1F
monochromatic
#09071B #18134C #281F7D #382BAE #5345D1

Accessibility & contrast

On white

13.27
#281F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#281F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F7D
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F7D#FFFFFF#000000##FFFFFF
##281F7D1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #281f7d;
/* rgb */ color: rgb(40, 31, 125);
/* oklch */ color: oklch(32.2% 0.150 278.1);
Tailwind
colors: {
  custom: {
    50: '#6f5ca4',
    500: '#281f7d',
    950: '#000000',
  },
}
SCSS
$custom: #281f7d;
$custom-light: #6f5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#281f7d",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 245.745,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32245,
    "c": 0.15042,
    "h": 278.1
  },
  "luminance": 0.02912
}

Semantic roles & 50–950 ramp

primary
#281F7D
secondary
#A6B048
accent
#E344D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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