#122156#122156

#122156 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.2% C 0.098 H 267.4°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#122156
RGBrgb(18, 33, 86)
HSLhsl(227, 65%, 20%)
HSVhsv(227, 79%, 34%)
CMYKcmyk(79.1%, 61.6%, 0%, 66.3%)
CIE-LABlab(14.89, 15.01, -33.98)
CIE-LCHlch(14.89, 37.15, 293.83°)
OKLaboklab(27.19% -0.0044 -0.098)
OKLCHoklch(27.19% 0.098 267.4)
XYZxyz(2.4724, 1.8879, 9.0364)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122156 #564712
analogous
#124356 #122156 #251256
triadic
#122156 #561221 #215612
tetradic
#122156 #561243 #564712 #125625
square
#122156 #561243 #564712 #125625
split-complementary
#122156 #562512 #435612
monochromatic
#050A19 #070E23 #122156 #1D3489 #2748BB

Accessibility & contrast

On white

15.24
#122156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#122156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122156
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122156#FFFFFF#000000##FFFFFF
##1221561.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #122156;
/* rgb */ color: rgb(18, 33, 86);
/* oklch */ color: oklch(27.2% 0.098 267.4);
Tailwind
colors: {
  custom: {
    50: '#5b5b86',
    500: '#122156',
    950: '#000000',
  },
}
SCSS
$custom: #122156;
$custom-light: #5b5b86;
$custom-dark: #000000;
JSON
{
  "hex": "#122156",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 86
  },
  "hsl": {
    "h": 226.765,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27189,
    "c": 0.09809,
    "h": 267.4
  },
  "luminance": 0.01888
}

Semantic roles & 50–950 ramp

primary
#122156
secondary
#8F7B35
accent
#C33FE8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #122156

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

Preview Lab → · Contrast checker → · Palette generator →

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