#281F58#281F58

#281F58 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.6% C 0.099 H 285.6°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#281F58
RGBrgb(40, 31, 88)
HSLhsl(249, 48%, 23%)
HSVhsv(249, 65%, 35%)
CMYKcmyk(54.5%, 64.8%, 0%, 65.5%)
CIE-LABlab(16.18, 21.48, -33.15)
CIE-LCHlch(16.18, 39.50, 302.94°)
OKLaboklab(28.64% 0.0265 -0.0949)
OKLCHoklch(28.64% 0.099 285.6)
XYZxyz(3.1260, 2.1355, 9.4781)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281F58 #4F581F
analogous
#1F3258 #281F58 #441F58
triadic
#281F58 #58281F #1F5828
tetradic
#281F58 #581F32 #4F581F #1F5844
square
#281F58 #581F32 #4F581F #1F5844
split-complementary
#281F58 #58441F #32581F
monochromatic
#0A0817 #130F2B #281F58 #3D2F85 #513FB3

Accessibility & contrast

On white

14.71
#281F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#281F58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281F58
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281F58#FFFFFF#000000##FFFFFF
##281F581.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5A
Deuteranopia (green-blind)
#002657
Tritanopia (blue-blind)
#162C38
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #281f58;
/* rgb */ color: rgb(40, 31, 88);
/* oklch */ color: oklch(28.6% 0.099 285.6);
Tailwind
colors: {
  custom: {
    50: '#675b88',
    500: '#281f58',
    950: '#000000',
  },
}
SCSS
$custom: #281f58;
$custom-light: #675b88;
$custom-dark: #000000;
JSON
{
  "hex": "#281f58",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 88
  },
  "hsl": {
    "h": 249.474,
    "s": 47.899,
    "l": 23.333
  },
  "oklch": {
    "l": 0.2864,
    "c": 0.09851,
    "h": 285.6
  },
  "luminance": 0.02136
}

Semantic roles & 50–950 ramp

primary
#281F58
secondary
#828D46
accent
#D750C2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040B
muted
#7A797C

Preview Lab

Preview with #281F58

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

Preview Lab → · Contrast checker → · Palette generator →

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