#281F75#281F75

#281F75 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.140 H 279.4°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#281F75
RGBrgb(40, 31, 117)
HSLhsl(246, 58%, 29%)
HSVhsv(246, 74%, 46%)
CMYKcmyk(65.8%, 73.5%, 0%, 54.1%)
CIE-LABlab(18.86, 31.60, -47.81)
CIE-LCHlch(18.86, 57.31, 303.46°)
OKLaboklab(31.41% 0.0227 -0.1379)
OKLCHoklch(31.41% 0.14 279.4)
XYZxyz(4.5749, 2.7151, 17.1092)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F75 #6C751F
analogous
#1F4175 #281F75 #531F75
triadic
#281F75 #75281F #1F7528
tetradic
#281F75 #751F41 #6C751F #1F7553
square
#281F75 #751F41 #6C751F #1F7553
split-complementary
#281F75 #75531F #41751F
monochromatic
#080618 #171245 #281F75 #392CA5 #5042CD

Accessibility & contrast

On white

13.61
#281F75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#281F75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F75
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F75#FFFFFF#000000##FFFFFF
##281F751.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003178
Deuteranopia (green-blind)
#002A73
Tritanopia (blue-blind)
#003647
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #281f75;
/* rgb */ color: rgb(40, 31, 117);
/* oklch */ color: oklch(31.4% 0.140 279.4);
Tailwind
colors: {
  custom: {
    50: '#6d5c9e',
    500: '#281f75',
    950: '#000000',
  },
}
SCSS
$custom: #281f75;
$custom-light: #6d5c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#281f75",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 117
  },
  "hsl": {
    "h": 246.279,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31411,
    "c": 0.13979,
    "h": 279.4
  },
  "luminance": 0.02715
}

Semantic roles & 50–950 ramp

primary
#281F75
secondary
#9EA947
accent
#E146D1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #281F75

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

Preview Lab → · Contrast checker → · Palette generator →

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