#151273#151273

#151273 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.9% C 0.155 H 271.5°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#151273
RGBrgb(21, 18, 115)
HSLhsl(242, 73%, 26%)
HSVhsv(242, 84%, 45%)
CMYKcmyk(81.7%, 84.3%, 0%, 54.9%)
CIE-LABlab(14.57, 36.46, -53.67)
CIE-LCHlch(14.57, 64.88, 304.19°)
OKLaboklab(27.94% 0.004 -0.1553)
OKLCHoklch(27.94% 0.155 271.5)
XYZxyz(3.6190, 1.8294, 16.3787)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151273 #707312
analogous
#123F73 #151273 #451273
triadic
#151273 #731512 #127315
tetradic
#151273 #73123F #707312 #127345
square
#151273 #73123F #707312 #127345
split-complementary
#151273 #734512 #3F7312
monochromatic
#05041A #0B0A3E #151273 #1F1AA8 #2923DD

Accessibility & contrast

On white

15.37
#151273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#151273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151273
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151273#FFFFFF#000000##FFFFFF
##1512731.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002976
Deuteranopia (green-blind)
#002071
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #151273;
/* rgb */ color: rgb(21, 18, 115);
/* oklch */ color: oklch(27.9% 0.155 271.5);
Tailwind
colors: {
  custom: {
    50: '#66539c',
    500: '#151273',
    950: '#000000',
  },
}
SCSS
$custom: #151273;
$custom-light: #66539c;
$custom-dark: #000000;
JSON
{
  "hex": "#151273",
  "rgb": {
    "r": 21,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 241.856,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.27942,
    "c": 0.15538,
    "h": 271.5
  },
  "luminance": 0.0183
}

Semantic roles & 50–950 ramp

primary
#151273
secondary
#A6AA37
accent
#F038EA
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #151273

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

Preview Lab → · Contrast checker → · Palette generator →

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