#151256#151256

#151256 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.4% C 0.117 H 275.3°. Best body text is #FFFFFF at 16.76:1 contrast (WCAG AA passes).

Color values

HEX#151256
RGBrgb(21, 18, 86)
HSLhsl(243, 65%, 20%)
HSVhsv(243, 79%, 34%)
CMYKcmyk(75.6%, 79.1%, 0%, 66.3%)
CIE-LABlab(11.02, 26.13, -40.31)
CIE-LCHlch(11.02, 48.04, 302.96°)
OKLaboklab(24.41% 0.0108 -0.1165)
OKLCHoklch(24.41% 0.117 275.3)
XYZxyz(2.2047, 1.2637, 8.9300)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151256 #535612
analogous
#123156 #151256 #371256
triadic
#151256 #561512 #125615
tetradic
#151256 #561231 #535612 #125637
square
#151256 #561231 #535612 #125637
split-complementary
#151256 #563712 #315612
monochromatic
#060519 #090723 #151256 #211D89 #2E27BB

Accessibility & contrast

On white

16.76
#151256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#151256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151256
16.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151256#FFFFFF#000000##FFFFFF
##1512561.0016.761.2516.76
#FFFFFF16.761.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002158
Deuteranopia (green-blind)
#001A55
Tritanopia (blue-blind)
#002533
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #151256;
/* rgb */ color: rgb(21, 18, 86);
/* oklch */ color: oklch(24.4% 0.117 275.3);
Tailwind
colors: {
  custom: {
    50: '#5e5186',
    500: '#151256',
    950: '#000000',
  },
}
SCSS
$custom: #151256;
$custom-light: #5e5186;
$custom-dark: #000000;
JSON
{
  "hex": "#151256",
  "rgb": {
    "r": 21,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 242.647,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.2441,
    "c": 0.11703,
    "h": 275.3
  },
  "luminance": 0.01264
}

Semantic roles & 50–950 ramp

primary
#151256
secondary
#8B8F35
accent
#E83FE1
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #151256

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

Preview Lab → · Contrast checker → · Palette generator →

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