#122056#122056

#122056 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.0% C 0.100 H 268.0°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#122056
RGBrgb(18, 32, 86)
HSLhsl(228, 65%, 20%)
HSVhsv(228, 79%, 34%)
CMYKcmyk(79.1%, 62.8%, 0%, 66.3%)
CIE-LABlab(14.59, 15.76, -34.47)
CIE-LCHlch(14.59, 37.91, 294.57°)
OKLaboklab(26.96% -0.0035 -0.0994)
OKLCHoklch(26.96% 0.1 268)
XYZxyz(2.4451, 1.8333, 9.0273)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122056 #564812
analogous
#124256 #122056 #261256
triadic
#122056 #561220 #205612
tetradic
#122056 #561242 #564812 #125626
square
#122056 #561242 #564812 #125626
split-complementary
#122056 #562612 #425612
monochromatic
#050919 #070D23 #122056 #1D3389 #2746BB

Accessibility & contrast

On white

15.36
#122056 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#122056 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122056
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122056#FFFFFF#000000##FFFFFF
##1220561.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002858
Deuteranopia (green-blind)
#002255
Tritanopia (blue-blind)
#002D37
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #122056;
/* rgb */ color: rgb(18, 32, 86);
/* oklch */ color: oklch(27.0% 0.100 268.0);
Tailwind
colors: {
  custom: {
    50: '#5b5b86',
    500: '#122056',
    950: '#000000',
  },
}
SCSS
$custom: #122056;
$custom-light: #5b5b86;
$custom-dark: #000000;
JSON
{
  "hex": "#122056",
  "rgb": {
    "r": 18,
    "g": 32,
    "b": 86
  },
  "hsl": {
    "h": 227.647,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26964,
    "c": 0.0995,
    "h": 268
  },
  "luminance": 0.01834
}

Semantic roles & 50–950 ramp

primary
#122056
secondary
#8F7C35
accent
#C63FE8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #122056

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

Preview Lab → · Contrast checker → · Palette generator →

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