#122256#122256

#122256 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.4% C 0.097 H 266.9°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#122256
RGBrgb(18, 34, 86)
HSLhsl(226, 65%, 20%)
HSVhsv(226, 79%, 34%)
CMYKcmyk(79.1%, 60.5%, 0%, 66.3%)
CIE-LABlab(15.19, 14.26, -33.49)
CIE-LCHlch(15.19, 36.40, 293.07°)
OKLaboklab(27.42% -0.0053 -0.0965)
OKLCHoklch(27.42% 0.097 266.9)
XYZxyz(2.5006, 1.9443, 9.0458)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122256 #564612
analogous
#124456 #122256 #241256
triadic
#122256 #561222 #225612
tetradic
#122256 #561244 #564612 #125624
square
#122256 #561244 #564612 #125624
split-complementary
#122256 #562412 #445612
monochromatic
#050A19 #070E23 #122256 #1D3689 #274ABB

Accessibility & contrast

On white

15.12
#122256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#122256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122256
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122256#FFFFFF#000000##FFFFFF
##1222561.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#002355
Tritanopia (blue-blind)
#002F38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #122256;
/* rgb */ color: rgb(18, 34, 86);
/* oklch */ color: oklch(27.4% 0.097 266.9);
Tailwind
colors: {
  custom: {
    50: '#5b5c86',
    500: '#122256',
    950: '#000000',
  },
}
SCSS
$custom: #122256;
$custom-light: #5b5c86;
$custom-dark: #000000;
JSON
{
  "hex": "#122256",
  "rgb": {
    "r": 18,
    "g": 34,
    "b": 86
  },
  "hsl": {
    "h": 225.882,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27418,
    "c": 0.09667,
    "h": 266.9
  },
  "luminance": 0.01945
}

Semantic roles & 50–950 ramp

primary
#122256
secondary
#8F7A35
accent
#C13FE8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #122256

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

Preview Lab → · Contrast checker → · Palette generator →

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