#281F65#281F65

#281F65 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.8% C 0.118 H 282.4°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#281F65
RGBrgb(40, 31, 101)
HSLhsl(248, 53%, 26%)
HSVhsv(248, 69%, 40%)
CMYKcmyk(60.4%, 69.3%, 0%, 60.4%)
CIE-LABlab(17.32, 26.03, -39.94)
CIE-LCHlch(17.32, 47.67, 303.10°)
OKLaboklab(29.83% 0.0253 -0.1148)
OKLCHoklch(29.83% 0.118 282.4)
XYZxyz(3.7133, 2.3704, 12.5713)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F65 #5C651F
analogous
#1F3965 #281F65 #4B1F65
triadic
#281F65 #65281F #1F6528
tetradic
#281F65 #651F39 #5C651F #1F654B
square
#281F65 #651F39 #5C651F #1F654B
split-complementary
#281F65 #654B1F #39651F
monochromatic
#090717 #151136 #281F65 #3B2D94 #4D3CC3

Accessibility & contrast

On white

14.25
#281F65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#281F65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F65
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F65#FFFFFF#000000##FFFFFF
##281F651.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D67
Deuteranopia (green-blind)
#002864
Tritanopia (blue-blind)
#08313F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #281f65;
/* rgb */ color: rgb(40, 31, 101);
/* oklch */ color: oklch(29.8% 0.118 282.4);
Tailwind
colors: {
  custom: {
    50: '#695b92',
    500: '#281f65',
    950: '#000000',
  },
}
SCSS
$custom: #281f65;
$custom-light: #695b92;
$custom-dark: #000000;
JSON
{
  "hex": "#281f65",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 101
  },
  "hsl": {
    "h": 247.714,
    "s": 53.03,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29827,
    "c": 0.1176,
    "h": 282.4
  },
  "luminance": 0.02371
}

Semantic roles & 50–950 ramp

primary
#281F65
secondary
#8F9946
accent
#DC4BCA
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #281F65

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

Preview Lab → · Contrast checker → · Palette generator →

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