#281F66#281F66

#281F66 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.9% C 0.119 H 282.2°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#281F66
RGBrgb(40, 31, 102)
HSLhsl(248, 53%, 26%)
HSVhsv(248, 70%, 40%)
CMYKcmyk(60.8%, 69.6%, 0%, 60%)
CIE-LABlab(17.41, 26.38, -40.44)
CIE-LCHlch(17.41, 48.28, 303.11°)
OKLaboklab(29.92% 0.0252 -0.1163)
OKLCHoklch(29.92% 0.119 282.2)
XYZxyz(3.7626, 2.3902, 12.8309)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F66 #5D661F
analogous
#1F3966 #281F66 #4B1F66
triadic
#281F66 #66281F #1F6628
tetradic
#281F66 #661F39 #5D661F #1F664B
square
#281F66 #661F39 #5D661F #1F664B
split-complementary
#281F66 #664B1F #39661F
monochromatic
#090717 #161137 #281F66 #3A2D95 #4D3CC4

Accessibility & contrast

On white

14.21
#281F66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#281F66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F66
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F66#FFFFFF#000000##FFFFFF
##281F661.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D68
Deuteranopia (green-blind)
#002865
Tritanopia (blue-blind)
#06313F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #281f66;
/* rgb */ color: rgb(40, 31, 102);
/* oklch */ color: oklch(29.9% 0.119 282.2);
Tailwind
colors: {
  custom: {
    50: '#695b92',
    500: '#281f66',
    950: '#000000',
  },
}
SCSS
$custom: #281f66;
$custom-light: #695b92;
$custom-dark: #000000;
JSON
{
  "hex": "#281f66",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 102
  },
  "hsl": {
    "h": 247.606,
    "s": 53.383,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29923,
    "c": 0.11902,
    "h": 282.2
  },
  "luminance": 0.0239
}

Semantic roles & 50–950 ramp

primary
#281F66
secondary
#909A46
accent
#DD4BCA
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #281F66

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

Preview Lab → · Contrast checker → · Palette generator →

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