#151678#151678

#151678 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.1% C 0.158 H 270.6°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#151678
RGBrgb(21, 22, 120)
HSLhsl(239, 70%, 28%)
HSVhsv(239, 83%, 47%)
CMYKcmyk(82.5%, 81.7%, 0%, 52.9%)
CIE-LABlab(15.95, 36.00, -54.60)
CIE-LCHlch(15.95, 65.40, 303.40°)
OKLaboklab(29.09% 0.0016 -0.1581)
OKLCHoklch(29.09% 0.158 270.6)
XYZxyz(3.9852, 2.0889, 17.9588)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151678 #787715
analogous
#154778 #151678 #451578
triadic
#151678 #781516 #167815
tetradic
#151678 #781547 #787715 #157845
square
#151678 #781547 #787715 #157845
split-complementary
#151678 #784515 #477815
monochromatic
#05051A #0C0C44 #151678 #1E20AC #2D2FDA

Accessibility & contrast

On white

14.81
#151678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#151678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151678
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151678#FFFFFF#000000##FFFFFF
##1516781.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7B
Deuteranopia (green-blind)
#002376
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #151678;
/* rgb */ color: rgb(21, 22, 120);
/* oklch */ color: oklch(29.1% 0.158 270.6);
Tailwind
colors: {
  custom: {
    50: '#6755a0',
    500: '#151678',
    950: '#000000',
  },
}
SCSS
$custom: #151678;
$custom-light: #6755a0;
$custom-dark: #000000;
JSON
{
  "hex": "#151678",
  "rgb": {
    "r": 21,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 239.394,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29089,
    "c": 0.15812,
    "h": 270.6
  },
  "luminance": 0.02089
}

Semantic roles & 50–950 ramp

primary
#151678
secondary
#AEAC3B
accent
#EB3BED
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #151678

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

Preview Lab → · Contrast checker → · Palette generator →

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