#281C7C#281C7C

#281C7C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.152 H 278.8°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#281C7C
RGBrgb(40, 28, 124)
HSLhsl(248, 63%, 30%)
HSVhsv(248, 77%, 49%)
CMYKcmyk(67.7%, 77.4%, 0%, 51.4%)
CIE-LABlab(18.96, 35.76, -52.14)
CIE-LCHlch(18.96, 63.23, 304.44°)
OKLaboklab(31.7% 0.0234 -0.1506)
OKLCHoklch(31.7% 0.152 278.8)
XYZxyz(4.9272, 2.7365, 19.3334)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281C7C #707C1C
analogous
#1C407C #281C7C #581C7C
triadic
#281C7C #7C281C #1C7C28
tetradic
#281C7C #7C1C40 #707C1C #1C7C58
square
#281C7C #7C1C40 #707C1C #1C7C58
split-complementary
#281C7C #7C581C #407C1C
monochromatic
#080619 #18114A #281C7C #3827AE #513FD4

Accessibility & contrast

On white

13.57
#281C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281C7C
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281C7C#FFFFFF#000000##FFFFFF
##281C7C1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #281c7c;
/* rgb */ color: rgb(40, 28, 124);
/* oklch */ color: oklch(31.7% 0.152 278.8);
Tailwind
colors: {
  custom: {
    50: '#6f5aa3',
    500: '#281c7c',
    950: '#000000',
  },
}
SCSS
$custom: #281c7c;
$custom-light: #6f5aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#281c7c",
  "rgb": {
    "r": 40,
    "g": 28,
    "b": 124
  },
  "hsl": {
    "h": 247.5,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31697,
    "c": 0.15236,
    "h": 278.8
  },
  "luminance": 0.02737
}

Semantic roles & 50–950 ramp

primary
#281C7C
secondary
#A2B044
accent
#E642D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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