#281A7F#281A7F

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

Color values

HEX#281A7F
RGBrgb(40, 26, 127)
HSLhsl(248, 66%, 30%)
HSVhsv(248, 80%, 50%)
CMYKcmyk(68.5%, 79.5%, 0%, 50.2%)
CIE-LABlab(18.89, 37.86, -54.15)
CIE-LCHlch(18.89, 66.08, 304.96°)
OKLaboklab(31.75% 0.0238 -0.1564)
OKLCHoklch(31.75% 0.158 278.7)
XYZxyz(5.0740, 2.7218, 20.3325)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A7F #717F1A
analogous
#1A3E7F #281A7F #5B1A7F
triadic
#281A7F #7F281A #1A7F28
tetradic
#281A7F #7F1A3E #717F1A #1A7F5B
square
#281A7F #7F1A3E #717F1A #1A7F5B
split-complementary
#281A7F #7F5B1A #3E7F1A
monochromatic
#080519 #18104C #281A7F #3824B2 #523CD7

Accessibility & contrast

On white

13.60
#281A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281A7F
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A7F#FFFFFF#000000##FFFFFF
##281A7F1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #281a7f;
/* rgb */ color: rgb(40, 26, 127);
/* oklch */ color: oklch(31.8% 0.158 278.7);
Tailwind
colors: {
  custom: {
    50: '#6f59a5',
    500: '#281a7f',
    950: '#000000',
  },
}
SCSS
$custom: #281a7f;
$custom-light: #6f59a5;
$custom-dark: #000000;
JSON
{
  "hex": "#281a7f",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 248.317,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.31751,
    "c": 0.15822,
    "h": 278.7
  },
  "luminance": 0.02722
}

Semantic roles & 50–950 ramp

primary
#281A7F
secondary
#A3B342
accent
#E93FD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #281A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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