#281B7D#281B7D

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

Color values

HEX#281B7D
RGBrgb(40, 27, 125)
HSLhsl(248, 64%, 30%)
HSVhsv(248, 78%, 49%)
CMYKcmyk(68%, 78.4%, 0%, 51%)
CIE-LABlab(18.87, 36.66, -52.93)
CIE-LCHlch(18.87, 64.39, 304.71°)
OKLaboklab(31.67% 0.0238 -0.1528)
OKLCHoklch(31.67% 0.155 278.8)
XYZxyz(4.9675, 2.7152, 19.6604)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281B7D #707D1B
analogous
#1B3F7D #281B7D #591B7D
triadic
#281B7D #7D281B #1B7D28
tetradic
#281B7D #7D1B3F #707D1B #1B7D59
square
#281B7D #7D1B3F #707D1B #1B7D59
split-complementary
#281B7D #7D591B #3F7D1B
monochromatic
#080519 #18104B #281B7D #3826AF #513DD5

Accessibility & contrast

On white

13.61
#281B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281B7D
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281B7D#FFFFFF#000000##FFFFFF
##281B7D1.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281b7d;
/* rgb */ color: rgb(40, 27, 125);
/* oklch */ color: oklch(31.7% 0.155 278.8);
Tailwind
colors: {
  custom: {
    50: '#6f5aa4',
    500: '#281b7d',
    950: '#000000',
  },
}
SCSS
$custom: #281b7d;
$custom-light: #6f5aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#281b7d",
  "rgb": {
    "r": 40,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 247.959,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31665,
    "c": 0.15468,
    "h": 278.8
  },
  "luminance": 0.02716
}

Semantic roles & 50–950 ramp

primary
#281B7D
secondary
#A2B143
accent
#E740D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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