#181256#181256

#181256 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.6% C 0.116 H 277.5°. Best body text is #FFFFFF at 16.67:1 contrast (WCAG AA passes).

Color values

HEX#181256
RGBrgb(24, 18, 86)
HSLhsl(245, 65%, 20%)
HSVhsv(245, 79%, 34%)
CMYKcmyk(72.1%, 79.1%, 0%, 66.3%)
CIE-LABlab(11.27, 26.52, -39.90)
CIE-LCHlch(11.27, 47.90, 303.61°)
OKLaboklab(24.65% 0.0152 -0.1152)
OKLCHoklch(24.65% 0.116 277.5)
XYZxyz(2.2722, 1.2985, 8.9332)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181256 #505612
analogous
#122E56 #181256 #3A1256
triadic
#181256 #561812 #125618
tetradic
#181256 #56122E #505612 #12563A
square
#181256 #56122E #505612 #12563A
split-complementary
#181256 #563A12 #2E5612
monochromatic
#070519 #0A0723 #181256 #261D89 #3427BB

Accessibility & contrast

On white

16.67
#181256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#181256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181256
16.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181256#FFFFFF#000000##FFFFFF
##1812561.0016.671.2616.67
#FFFFFF16.671.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181256;
/* rgb */ color: rgb(24, 18, 86);
/* oklch */ color: oklch(24.6% 0.116 277.5);
Tailwind
colors: {
  custom: {
    50: '#5f5186',
    500: '#181256',
    950: '#000000',
  },
}
SCSS
$custom: #181256;
$custom-light: #5f5186;
$custom-dark: #000000;
JSON
{
  "hex": "#181256",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 245.294,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.24648,
    "c": 0.11623,
    "h": 277.5
  },
  "luminance": 0.01299
}

Semantic roles & 50–950 ramp

primary
#181256
secondary
#878F35
accent
#E83FD9
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #181256

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

Preview Lab → · Contrast checker → · Palette generator →

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