#281FD4#281FD4

#281FD4 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 42.3% C 0.253 H 270.1°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#281FD4
RGBrgb(40, 31, 212)
HSLhsl(243, 74%, 48%)
HSVhsv(243, 85%, 83%)
CMYKcmyk(81.1%, 85.4%, 0%, 16.9%)
CIE-LABlab(29.87, 61.51, -87.37)
CIE-LCHlch(29.87, 106.85, 305.15°)
OKLaboklab(42.28% 0.0003 -0.2528)
OKLCHoklch(42.28% 0.253 270.1)
XYZxyz(13.2447, 6.1830, 62.7700)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281FD4 #CBD41F
analogous
#1F71D4 #281FD4 #821FD4
triadic
#281FD4 #D4281F #1FD428
tetradic
#281FD4 #D41F71 #CBD41F #1FD482
square
#281FD4 #D41F71 #CBD41F #1FD482
split-complementary
#281FD4 #D4821F #71D41F
monochromatic
#140F69 #1E179F #281FD4 #534BE5 #8681ED

Accessibility & contrast

On white

9.39
#281FD4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#281FD4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281FD4
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281FD4#FFFFFF#000000##FFFFFF
##281FD41.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FD9
Deuteranopia (green-blind)
#003DD1
Tritanopia (blue-blind)
#005D7E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #281fd4;
/* rgb */ color: rgb(40, 31, 212);
/* oklch */ color: oklch(42.3% 0.253 270.1);
Tailwind
colors: {
  custom: {
    50: '#8462e3',
    500: '#281fd4',
    950: '#000000',
  },
}
SCSS
$custom: #281fd4;
$custom-light: #8462e3;
$custom-dark: #000000;
JSON
{
  "hex": "#281fd4",
  "rgb": {
    "r": 40,
    "g": 31,
    "b": 212
  },
  "hsl": {
    "h": 242.983,
    "s": 74.486,
    "l": 47.647
  },
  "oklch": {
    "l": 0.42276,
    "c": 0.25277,
    "h": 270.1
  },
  "luminance": 0.06185
}

Semantic roles & 50–950 ramp

primary
#281FD4
secondary
#D1D57A
accent
#F137E8
background
#F9F6FE
surface
#F1EBFC
border
#CBC6D5
text
#0D0616
muted
#7E7A84

Preview Lab

Preview with #281FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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