#281A7E#281A7E

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

Color values

HEX#281A7E
RGBrgb(40, 26, 126)
HSLhsl(248, 66%, 30%)
HSVhsv(248, 79%, 49%)
CMYKcmyk(68.3%, 79.4%, 0%, 50.6%)
CIE-LABlab(18.78, 37.54, -53.70)
CIE-LCHlch(18.78, 65.52, 304.95°)
OKLaboklab(31.64% 0.0241 -0.1551)
OKLCHoklch(31.64% 0.157 278.8)
XYZxyz(5.0092, 2.6958, 19.9910)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281A7E #707E1A
analogous
#1A3E7E #281A7E #5A1A7E
triadic
#281A7E #7E281A #1A7E28
tetradic
#281A7E #7E1A3E #707E1A #1A7E5A
square
#281A7E #7E1A3E #707E1A #1A7E5A
split-complementary
#281A7E #7E5A1A #3E7E1A
monochromatic
#080519 #18104B #281A7E #3824B1 #513CD7

Accessibility & contrast

On white

13.64
#281A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #281A7E
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281A7E#FFFFFF#000000##FFFFFF
##281A7E1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #281a7e;
/* rgb */ color: rgb(40, 26, 126);
/* oklch */ color: oklch(31.6% 0.157 278.8);
Tailwind
colors: {
  custom: {
    50: '#6f59a4',
    500: '#281a7e',
    950: '#000000',
  },
}
SCSS
$custom: #281a7e;
$custom-light: #6f59a4;
$custom-dark: #000000;
JSON
{
  "hex": "#281a7e",
  "rgb": {
    "r": 40,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 248.4,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3164,
    "c": 0.15695,
    "h": 278.8
  },
  "luminance": 0.02696
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #281A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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