#151270#151270

#151270 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.6% C 0.152 H 271.8°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#151270
RGBrgb(21, 18, 112)
HSLhsl(242, 72%, 25%)
HSVhsv(242, 84%, 44%)
CMYKcmyk(81.2%, 83.9%, 0%, 56.1%)
CIE-LABlab(14.18, 35.44, -52.36)
CIE-LCHlch(14.18, 63.22, 304.10°)
OKLaboklab(27.57% 0.0047 -0.1515)
OKLCHoklch(27.57% 0.152 271.8)
XYZxyz(3.4492, 1.7615, 15.4843)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151270 #6D7012
analogous
#123E70 #151270 #441270
triadic
#151270 #701512 #127015
tetradic
#151270 #70123E #6D7012 #127044
square
#151270 #70123E #6D7012 #127044
split-complementary
#151270 #704412 #3E7012
monochromatic
#05041A #0B0A3B #151270 #1F1AA5 #2923D9

Accessibility & contrast

On white

15.53
#151270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#151270 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151270
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151270#FFFFFF#000000##FFFFFF
##1512701.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002873
Deuteranopia (green-blind)
#001F6E
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #151270;
/* rgb */ color: rgb(21, 18, 112);
/* oklch */ color: oklch(27.6% 0.152 271.8);
Tailwind
colors: {
  custom: {
    50: '#65529a',
    500: '#151270',
    950: '#000000',
  },
}
SCSS
$custom: #151270;
$custom-light: #65529a;
$custom-dark: #000000;
JSON
{
  "hex": "#151270",
  "rgb": {
    "r": 21,
    "g": 18,
    "b": 112
  },
  "hsl": {
    "h": 241.915,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.27565,
    "c": 0.1516,
    "h": 271.8
  },
  "luminance": 0.01762
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #151270

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

Preview Lab → · Contrast checker → · Palette generator →

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