#121256#121256

#121256 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 24.2% C 0.118 H 273.2°. Best body text is #FFFFFF at 16.85:1 contrast (WCAG AA passes).

Color values

HEX#121256
RGBrgb(18, 18, 86)
HSLhsl(240, 65%, 20%)
HSVhsv(240, 79%, 34%)
CMYKcmyk(79.1%, 79.1%, 0%, 66.3%)
CIE-LABlab(10.80, 25.79, -40.68)
CIE-LCHlch(10.80, 48.17, 302.37°)
OKLaboklab(24.19% 0.0066 -0.1177)
OKLCHoklch(24.19% 0.118 273.2)
XYZxyz(2.1449, 1.2329, 8.9272)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121256 #565612
analogous
#123456 #121256 #341256
triadic
#121256 #561212 #125612
tetradic
#121256 #561234 #565612 #125634
square
#121256 #561234 #565612 #125634
split-complementary
#121256 #563412 #345612
monochromatic
#050519 #070723 #121256 #1D1D89 #2727BB

Accessibility & contrast

On white

16.85
#121256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121256
16.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121256#FFFFFF#000000##FFFFFF
##1212561.0016.851.2516.85
#FFFFFF16.851.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002058
Deuteranopia (green-blind)
#001A55
Tritanopia (blue-blind)
#002532
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #121256;
/* rgb */ color: rgb(18, 18, 86);
/* oklch */ color: oklch(24.2% 0.118 273.2);
Tailwind
colors: {
  custom: {
    50: '#5d5086',
    500: '#121256',
    950: '#000000',
  },
}
SCSS
$custom: #121256;
$custom-light: #5d5086;
$custom-dark: #000000;
JSON
{
  "hex": "#121256",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 240,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.24194,
    "c": 0.11788,
    "h": 273.2
  },
  "luminance": 0.01233
}

Semantic roles & 50–950 ramp

primary
#121256
secondary
#8F8F35
accent
#E83FE8
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #121256

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

Preview Lab → · Contrast checker → · Palette generator →

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