#122356#122356

#122356 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.6% C 0.095 H 266.3°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#122356
RGBrgb(18, 35, 86)
HSLhsl(225, 65%, 20%)
HSVhsv(225, 79%, 34%)
CMYKcmyk(79.1%, 59.3%, 0%, 66.3%)
CIE-LABlab(15.50, 13.51, -32.99)
CIE-LCHlch(15.50, 35.65, 292.27°)
OKLaboklab(27.65% -0.0062 -0.095)
OKLCHoklch(27.65% 0.095 266.3)
XYZxyz(2.5296, 2.0023, 9.0555)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122356 #564512
analogous
#124556 #122356 #231256
triadic
#122356 #561223 #235612
tetradic
#122356 #561245 #564512 #125623
square
#122356 #561245 #564512 #125623
split-complementary
#122356 #562312 #455612
monochromatic
#050A19 #070E23 #122356 #1D3889 #274CBB

Accessibility & contrast

On white

14.99
#122356 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#122356 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122356
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122356#FFFFFF#000000##FFFFFF
##1223561.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A58
Deuteranopia (green-blind)
#002455
Tritanopia (blue-blind)
#002F38
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #122356;
/* rgb */ color: rgb(18, 35, 86);
/* oklch */ color: oklch(27.6% 0.095 266.3);
Tailwind
colors: {
  custom: {
    50: '#5b5d86',
    500: '#122356',
    950: '#000000',
  },
}
SCSS
$custom: #122356;
$custom-light: #5b5d86;
$custom-dark: #000000;
JSON
{
  "hex": "#122356",
  "rgb": {
    "r": 18,
    "g": 35,
    "b": 86
  },
  "hsl": {
    "h": 225,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27649,
    "c": 0.09523,
    "h": 266.3
  },
  "luminance": 0.02003
}

Semantic roles & 50–950 ramp

primary
#122356
secondary
#8F7835
accent
#BE3FE8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #122356

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

Preview Lab → · Contrast checker → · Palette generator →

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