#122556#122556

#122556 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.1% C 0.092 H 265.0°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#122556
RGBrgb(18, 37, 86)
HSLhsl(223, 65%, 20%)
HSVhsv(223, 79%, 34%)
CMYKcmyk(79.1%, 57%, 0%, 66.3%)
CIE-LABlab(16.12, 12.01, -31.98)
CIE-LCHlch(16.12, 34.16, 290.58°)
OKLaboklab(28.12% -0.008 -0.092)
OKLCHoklch(28.12% 0.092 265)
XYZxyz(2.5901, 2.1233, 9.0756)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122556 #564312
analogous
#124756 #122556 #211256
triadic
#122556 #561225 #255612
tetradic
#122556 #561247 #564312 #125621
square
#122556 #561247 #564312 #125621
split-complementary
#122556 #562112 #475612
monochromatic
#050B19 #070F23 #122556 #1D3B89 #2751BB

Accessibility & contrast

On white

14.74
#122556 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122556
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122556#FFFFFF#000000##FFFFFF
##1225561.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042B58
Deuteranopia (green-blind)
#002555
Tritanopia (blue-blind)
#003139
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #122556;
/* rgb */ color: rgb(18, 37, 86);
/* oklch */ color: oklch(28.1% 0.092 265.0);
Tailwind
colors: {
  custom: {
    50: '#5b5f86',
    500: '#122556',
    950: '#000000',
  },
}
SCSS
$custom: #122556;
$custom-light: #5b5f86;
$custom-dark: #000000;
JSON
{
  "hex": "#122556",
  "rgb": {
    "r": 18,
    "g": 37,
    "b": 86
  },
  "hsl": {
    "h": 223.235,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.2812,
    "c": 0.09238,
    "h": 265
  },
  "luminance": 0.02124
}

Semantic roles & 50–950 ramp

primary
#122556
secondary
#8F7635
accent
#B93FE8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #122556

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

Preview Lab → · Contrast checker → · Palette generator →

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