#281D98#281D98

#281D98 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.186 H 274.8°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#281D98
RGBrgb(40, 29, 152)
HSLhsl(245, 68%, 35%)
HSVhsv(245, 81%, 60%)
CMYKcmyk(73.7%, 80.9%, 0%, 40.4%)
CIE-LABlab(22.29, 44.35, -64.16)
CIE-LCHlch(22.29, 78.00, 304.65°)
OKLaboklab(34.96% 0.0157 -0.1855)
OKLCHoklch(34.96% 0.186 274.8)
XYZxyz(6.9801, 3.5962, 30.0259)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281D98 #8D981D
analogous
#1D4F98 #281D98 #651D98
triadic
#281D98 #98281D #1D9828
tetradic
#281D98 #981D4F #8D981D #1D9865
square
#281D98 #981D4F #8D981D #1D9865
split-complementary
#281D98 #98651D #4F981D
monochromatic
#0D0931 #1A1365 #281D98 #3627CB #5E52DE

Accessibility & contrast

On white

12.21
#281D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#281D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281D98
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281D98#FFFFFF#000000##FFFFFF
##281D981.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9B
Deuteranopia (green-blind)
#003096
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #281d98;
/* rgb */ color: rgb(40, 29, 152);
/* oklch */ color: oklch(35.0% 0.186 274.8);
Tailwind
colors: {
  custom: {
    50: '#755db8',
    500: '#281d98',
    950: '#000000',
  },
}
SCSS
$custom: #281d98;
$custom-light: #755db8;
$custom-dark: #000000;
JSON
{
  "hex": "#281d98",
  "rgb": {
    "r": 40,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 245.366,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34961,
    "c": 0.18621,
    "h": 274.8
  },
  "luminance": 0.03597
}

Semantic roles & 50–950 ramp

primary
#281D98
secondary
#B7C150
accent
#EB3DDB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #281D98

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

Preview Lab → · Contrast checker → · Palette generator →

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