#122856#122856

#122856 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.8% C 0.088 H 262.9°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#122856
RGBrgb(18, 40, 86)
HSLhsl(221, 65%, 20%)
HSVhsv(221, 79%, 34%)
CMYKcmyk(79.1%, 53.5%, 0%, 66.3%)
CIE-LABlab(17.07, 9.76, -30.44)
CIE-LCHlch(17.07, 31.97, 287.78°)
OKLaboklab(28.84% -0.0109 -0.0874)
OKLCHoklch(28.84% 0.088 262.9)
XYZxyz(2.6874, 2.3178, 9.1080)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122856 #564012
analogous
#124A56 #122856 #1E1256
triadic
#122856 #561228 #285612
tetradic
#122856 #56124A #564012 #12561E
square
#122856 #56124A #564012 #12561E
split-complementary
#122856 #561E12 #4A5612
monochromatic
#050C19 #071023 #122856 #1D4089 #2757BB

Accessibility & contrast

On white

14.35
#122856 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#122856 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122856
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122856#FFFFFF#000000##FFFFFF
##1228561.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2D58
Deuteranopia (green-blind)
#002755
Tritanopia (blue-blind)
#00333A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #122856;
/* rgb */ color: rgb(18, 40, 86);
/* oklch */ color: oklch(28.8% 0.088 262.9);
Tailwind
colors: {
  custom: {
    50: '#5b6186',
    500: '#122856',
    950: '#000000',
  },
}
SCSS
$custom: #122856;
$custom-light: #5b6186;
$custom-dark: #000000;
JSON
{
  "hex": "#122856",
  "rgb": {
    "r": 18,
    "g": 40,
    "b": 86
  },
  "hsl": {
    "h": 220.588,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28844,
    "c": 0.08812,
    "h": 262.9
  },
  "luminance": 0.02318
}

Semantic roles & 50–950 ramp

primary
#122856
secondary
#8F7235
accent
#B23FE8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #122856

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

Preview Lab → · Contrast checker → · Palette generator →

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