#281C7B#281C7B

#281C7B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.151 H 279.0°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#281C7B
RGBrgb(40, 28, 123)
HSLhsl(248, 63%, 30%)
HSVhsv(248, 77%, 48%)
CMYKcmyk(67.5%, 77.2%, 0%, 51.8%)
CIE-LABlab(18.85, 35.43, -51.68)
CIE-LCHlch(18.85, 62.66, 304.43°)
OKLaboklab(31.59% 0.0236 -0.1492)
OKLCHoklch(31.59% 0.151 279)
XYZxyz(4.8643, 2.7113, 19.0020)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C7B #6F7B1C
analogous
#1C407B #281C7B #581C7B
triadic
#281C7B #7B281C #1C7B28
tetradic
#281C7B #7B1C40 #6F7B1C #1C7B58
square
#281C7B #7B1C40 #6F7B1C #1C7B58
split-complementary
#281C7B #7B581C #407B1C
monochromatic
#080619 #181149 #281C7B #3827AD #513ED3

Accessibility & contrast

On white

13.62
#281C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#281C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281C7B
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C7B#FFFFFF#000000##FFFFFF
##281C7B1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #281c7b;
/* rgb */ color: rgb(40, 28, 123);
/* oklch */ color: oklch(31.6% 0.151 279.0);
Tailwind
colors: {
  custom: {
    50: '#6e5aa2',
    500: '#281c7b',
    950: '#000000',
  },
}
SCSS
$custom: #281c7b;
$custom-light: #6e5aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#281c7b",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 123
  },
  "hsl": {
    "h": 247.579,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31588,
    "c": 0.15108,
    "h": 279
  },
  "luminance": 0.02712
}

Semantic roles & 50–950 ramp

primary
#281C7B
secondary
#A1AF44
accent
#E642D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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