#281F7B#281F7B

#281F7B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.148 H 278.4°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#281F7B
RGBrgb(40, 31, 123)
HSLhsl(246, 60%, 30%)
HSVhsv(246, 75%, 48%)
CMYKcmyk(67.5%, 74.8%, 0%, 51.8%)
CIE-LABlab(19.48, 33.66, -50.65)
CIE-LCHlch(19.48, 60.82, 303.61°)
OKLaboklab(32.03% 0.0216 -0.1462)
OKLCHoklch(32.03% 0.148 278.4)
XYZxyz(4.9391, 2.8607, 19.0270)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F7B #727B1F
analogous
#1F447B #281F7B #561F7B
triadic
#281F7B #7B281F #1F7B28
tetradic
#281F7B #7B1F44 #727B1F #1F7B56
square
#281F7B #7B1F44 #727B1F #1F7B56
split-complementary
#281F7B #7B561F #447B1F
monochromatic
#080619 #18134A #281F7B #382BAC #5244D0

Accessibility & contrast

On white

13.36
#281F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281F7B
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F7B#FFFFFF#000000##FFFFFF
##281F7B1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #281f7b;
/* rgb */ color: rgb(40, 31, 123);
/* oklch */ color: oklch(32.0% 0.148 278.4);
Tailwind
colors: {
  custom: {
    50: '#6e5ca2',
    500: '#281f7b',
    950: '#000000',
  },
}
SCSS
$custom: #281f7b;
$custom-light: #6e5ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#281f7b",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 245.87,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32034,
    "c": 0.14779,
    "h": 278.4
  },
  "luminance": 0.02861
}

Semantic roles & 50–950 ramp

primary
#281F7B
secondary
#A4AE48
accent
#E345D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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