#151280#151280

#151280 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.171 H 270.3°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#151280
RGBrgb(21, 18, 128)
HSLhsl(242, 75%, 29%)
HSVhsv(242, 86%, 50%)
CMYKcmyk(83.6%, 85.9%, 0%, 49.8%)
CIE-LABlab(16.26, 40.78, -59.20)
CIE-LCHlch(16.26, 71.89, 304.56°)
OKLaboklab(29.6% 0.0008 -0.1713)
OKLCHoklch(29.6% 0.171 270.3)
XYZxyz(4.4205, 2.1500, 20.5999)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151280 #7D8012
analogous
#124680 #151280 #4C1280
triadic
#151280 #801512 #128015
tetradic
#151280 #801246 #7D8012 #12804C
square
#151280 #801246 #7D8012 #12804C
split-complementary
#151280 #804C12 #468012
monochromatic
#04041B #0C0A4A #151280 #1E1AB6 #302BE1

Accessibility & contrast

On white

14.68
#151280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#151280 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151280
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151280#FFFFFF#000000##FFFFFF
##1512801.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E83
Deuteranopia (green-blind)
#00237E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #151280;
/* rgb */ color: rgb(21, 18, 128);
/* oklch */ color: oklch(29.6% 0.171 270.3);
Tailwind
colors: {
  custom: {
    50: '#6a54a6',
    500: '#151280',
    950: '#000000',
  },
}
SCSS
$custom: #151280;
$custom-light: #6a54a6;
$custom-dark: #000000;
JSON
{
  "hex": "#151280",
  "rgb": {
    "r": 21,
    "g": 18,
    "b": 128
  },
  "hsl": {
    "h": 241.636,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.29598,
    "c": 0.17135,
    "h": 270.3
  },
  "luminance": 0.02151
}

Semantic roles & 50–950 ramp

primary
#151280
secondary
#B2B638
accent
#F236ED
background
#F7F4FA
surface
#EDE8F4
border
#C8C4CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #151280

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

Preview Lab → · Contrast checker → · Palette generator →

#151280 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva