#281B7C#281B7C

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

Color values

HEX#281B7C
RGBrgb(40, 27, 124)
HSLhsl(248, 64%, 30%)
HSVhsv(248, 78%, 49%)
CMYKcmyk(67.7%, 78.2%, 0%, 51.4%)
CIE-LABlab(18.76, 36.33, -52.47)
CIE-LCHlch(18.76, 63.82, 304.70°)
OKLaboklab(31.56% 0.024 -0.1515)
OKLCHoklch(31.56% 0.153 279)
XYZxyz(4.9039, 2.6898, 19.3256)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B7C #6F7C1B
analogous
#1B3F7C #281B7C #591B7C
triadic
#281B7C #7C281B #1B7C28
tetradic
#281B7C #7C1B3F #6F7C1B #1B7C59
square
#281B7C #7C1B3F #6F7C1B #1B7C59
split-complementary
#281B7C #7C591B #3F7C1B
monochromatic
#080519 #18104A #281B7C #3826AE #513DD5

Accessibility & contrast

On white

13.65
#281B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281B7C
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B7C#FFFFFF#000000##FFFFFF
##281B7C1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281b7c;
/* rgb */ color: rgb(40, 27, 124);
/* oklch */ color: oklch(31.6% 0.153 279.0);
Tailwind
colors: {
  custom: {
    50: '#6f5aa3',
    500: '#281b7c',
    950: '#000000',
  },
}
SCSS
$custom: #281b7c;
$custom-light: #6f5aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#281b7c",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 248.041,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31556,
    "c": 0.1534,
    "h": 279
  },
  "luminance": 0.0269
}

Semantic roles & 50–950 ramp

primary
#281B7C
secondary
#A1B043
accent
#E741D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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