#281C7D#281C7D

#281C7D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.154 H 278.7°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#281C7D
RGBrgb(40, 28, 125)
HSLhsl(247, 63%, 30%)
HSVhsv(247, 78%, 49%)
CMYKcmyk(68%, 77.6%, 0%, 51%)
CIE-LABlab(19.06, 36.09, -52.60)
CIE-LCHlch(19.06, 63.79, 304.46°)
OKLaboklab(31.81% 0.0231 -0.1519)
OKLCHoklch(31.81% 0.154 278.7)
XYZxyz(4.9908, 2.7619, 19.6681)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C7D #717D1C
analogous
#1C407D #281C7D #591C7D
triadic
#281C7D #7D281C #1C7D28
tetradic
#281C7D #7D1C40 #717D1C #1C7D59
square
#281C7D #7D1C40 #717D1C #1C7D59
split-complementary
#281C7D #7D591C #407D1C
monochromatic
#080619 #18114B #281C7D #3827AF #523FD4

Accessibility & contrast

On white

13.53
#281C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#281C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C7D
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C7D#FFFFFF#000000##FFFFFF
##281C7D1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #281c7d;
/* rgb */ color: rgb(40, 28, 125);
/* oklch */ color: oklch(31.8% 0.154 278.7);
Tailwind
colors: {
  custom: {
    50: '#6f5aa4',
    500: '#281c7d',
    950: '#000000',
  },
}
SCSS
$custom: #281c7d;
$custom-light: #6f5aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#281c7d",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 247.423,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.31805,
    "c": 0.15365,
    "h": 278.7
  },
  "luminance": 0.02762
}

Semantic roles & 50–950 ramp

primary
#281C7D
secondary
#A3B144
accent
#E641D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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