#151271#151271

#151271 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.7% C 0.153 H 271.7°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#151271
RGBrgb(21, 18, 113)
HSLhsl(242, 73%, 26%)
HSVhsv(242, 84%, 44%)
CMYKcmyk(81.4%, 84.1%, 0%, 55.7%)
CIE-LABlab(14.31, 35.78, -52.79)
CIE-LCHlch(14.31, 63.78, 304.13°)
OKLaboklab(27.69% 0.0044 -0.1528)
OKLCHoklch(27.69% 0.153 271.7)
XYZxyz(3.5052, 1.7839, 15.7792)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151271 #6E7112
analogous
#123E71 #151271 #441271
triadic
#151271 #711512 #127115
tetradic
#151271 #71123E #6E7112 #127144
square
#151271 #71123E #6E7112 #127144
split-complementary
#151271 #714412 #3E7112
monochromatic
#05041A #0B0A3C #151271 #1F1AA6 #2923DB

Accessibility & contrast

On white

15.48
#151271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#151271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151271
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151271#FFFFFF#000000##FFFFFF
##1512711.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002974
Deuteranopia (green-blind)
#001F6F
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #151271;
/* rgb */ color: rgb(21, 18, 113);
/* oklch */ color: oklch(27.7% 0.153 271.7);
Tailwind
colors: {
  custom: {
    50: '#66529b',
    500: '#151271',
    950: '#000000',
  },
}
SCSS
$custom: #151271;
$custom-light: #66529b;
$custom-dark: #000000;
JSON
{
  "hex": "#151271",
  "rgb": {
    "r": 21,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 241.895,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.27691,
    "c": 0.15286,
    "h": 271.7
  },
  "luminance": 0.01784
}

Semantic roles & 50–950 ramp

primary
#151271
secondary
#A4A837
accent
#EF39E9
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #151271

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

Preview Lab → · Contrast checker → · Palette generator →

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