#281F5E#281F5E

#281F5E is a dark, moderate blue. Relative luminance 0.022; OKLCH L 29.2% C 0.107 H 284.0°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#281F5E
RGBrgb(40, 31, 94)
HSLhsl(249, 50%, 25%)
HSVhsv(249, 67%, 37%)
CMYKcmyk(57.4%, 67%, 0%, 63.1%)
CIE-LABlab(16.70, 23.57, -36.33)
CIE-LCHlch(16.70, 43.31, 302.98°)
OKLaboklab(29.18% 0.0261 -0.1042)
OKLCHoklch(29.18% 0.107 284)
XYZxyz(3.3848, 2.2391, 10.8413)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F5E #555E1F
analogous
#1F365E #281F5E #481F5E
triadic
#281F5E #5E281F #1F5E28
tetradic
#281F5E #5E1F36 #555E1F #1F5E48
square
#281F5E #5E1F36 #555E1F #1F5E48
split-complementary
#281F5E #5E481F #365E1F
monochromatic
#0A0817 #141030 #281F5E #3C2E8C #4F3DBA

Accessibility & contrast

On white

14.50
#281F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#281F5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F5E
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F5E#FFFFFF#000000##FFFFFF
##281F5E1.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B60
Deuteranopia (green-blind)
#00275D
Tritanopia (blue-blind)
#112E3B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #281f5e;
/* rgb */ color: rgb(40, 31, 94);
/* oklch */ color: oklch(29.2% 0.107 284.0);
Tailwind
colors: {
  custom: {
    50: '#685b8c',
    500: '#281f5e',
    950: '#000000',
  },
}
SCSS
$custom: #281f5e;
$custom-light: #685b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#281f5e",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 94
  },
  "hsl": {
    "h": 248.571,
    "s": 50.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29175,
    "c": 0.10745,
    "h": 284
  },
  "luminance": 0.02239
}

Semantic roles & 50–950 ramp

primary
#281F5E
secondary
#889346
accent
#DA4EC6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #281F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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