#151272#151272

#151272 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.8% C 0.154 H 271.6°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#151272
RGBrgb(21, 18, 114)
HSLhsl(242, 73%, 26%)
HSVhsv(242, 84%, 45%)
CMYKcmyk(81.6%, 84.2%, 0%, 55.3%)
CIE-LABlab(14.44, 36.12, -53.23)
CIE-LCHlch(14.44, 64.33, 304.16°)
OKLaboklab(27.82% 0.0042 -0.1541)
OKLCHoklch(27.82% 0.154 271.6)
XYZxyz(3.5618, 1.8066, 16.0773)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151272 #6F7212
analogous
#123F72 #151272 #451272
triadic
#151272 #721512 #127215
tetradic
#151272 #72123F #6F7212 #127245
square
#151272 #72123F #6F7212 #127245
split-complementary
#151272 #724512 #3F7212
monochromatic
#05041A #0B0A3D #151272 #1F1AA7 #2823DC

Accessibility & contrast

On white

15.43
#151272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151272
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151272#FFFFFF#000000##FFFFFF
##1512721.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002975
Deuteranopia (green-blind)
#002070
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #151272;
/* rgb */ color: rgb(21, 18, 114);
/* oklch */ color: oklch(27.8% 0.154 271.6);
Tailwind
colors: {
  custom: {
    50: '#66529c',
    500: '#151272',
    950: '#000000',
  },
}
SCSS
$custom: #151272;
$custom-light: #66529c;
$custom-dark: #000000;
JSON
{
  "hex": "#151272",
  "rgb": {
    "r": 21,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 241.875,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.27816,
    "c": 0.15413,
    "h": 271.6
  },
  "luminance": 0.01807
}

Semantic roles & 50–950 ramp

primary
#151272
secondary
#A5A937
accent
#EF38EA
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #151272

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

Preview Lab → · Contrast checker → · Palette generator →

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