#281F73#281F73

#281F73 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.2% C 0.137 H 279.7°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#281F73
RGBrgb(40, 31, 115)
HSLhsl(246, 58%, 29%)
HSVhsv(246, 73%, 45%)
CMYKcmyk(65.2%, 73%, 0%, 54.9%)
CIE-LABlab(18.66, 30.91, -46.85)
CIE-LCHlch(18.66, 56.13, 303.41°)
OKLaboklab(31.21% 0.0231 -0.1351)
OKLCHoklch(31.21% 0.137 279.7)
XYZxyz(4.4586, 2.6686, 16.4965)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F73 #6A731F
analogous
#1F4073 #281F73 #521F73
triadic
#281F73 #73281F #1F7328
tetradic
#281F73 #731F40 #6A731F #1F7352
square
#281F73 #731F40 #6A731F #1F7352
split-complementary
#281F73 #73521F #40731F
monochromatic
#080618 #171243 #281F73 #392CA3 #5041CC

Accessibility & contrast

On white

13.69
#281F73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#281F73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F73
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F73#FFFFFF#000000##FFFFFF
##281F731.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003176
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#003646
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #281f73;
/* rgb */ color: rgb(40, 31, 115);
/* oklch */ color: oklch(31.2% 0.137 279.7);
Tailwind
colors: {
  custom: {
    50: '#6c5c9c',
    500: '#281f73',
    950: '#000000',
  },
}
SCSS
$custom: #281f73;
$custom-light: #6c5c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#281f73",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 115
  },
  "hsl": {
    "h": 246.429,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31207,
    "c": 0.13708,
    "h": 279.7
  },
  "luminance": 0.02669
}

Semantic roles & 50–950 ramp

primary
#281F73
secondary
#9DA747
accent
#E147D0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #281F73

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

Preview Lab → · Contrast checker → · Palette generator →

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