#122A56#122A56

#122A56 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.3% C 0.085 H 261.3°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#122A56
RGBrgb(18, 42, 86)
HSLhsl(219, 65%, 20%)
HSVhsv(219, 79%, 34%)
CMYKcmyk(79.1%, 51.2%, 0%, 66.3%)
CIE-LABlab(17.72, 8.28, -29.41)
CIE-LCHlch(17.72, 30.55, 285.72°)
OKLaboklab(29.34% -0.0129 -0.0843)
OKLCHoklch(29.34% 0.085 261.3)
XYZxyz(2.7565, 2.4561, 9.1311)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122A56 #563E12
analogous
#124C56 #122A56 #1C1256
triadic
#122A56 #56122A #2A5612
tetradic
#122A56 #56124C #563E12 #12561C
square
#122A56 #56124C #563E12 #12561C
split-complementary
#122A56 #561C12 #4C5612
monochromatic
#050C19 #071123 #122A56 #1D4389 #275BBB

Accessibility & contrast

On white

14.08
#122A56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#122A56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122A56
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122A56#FFFFFF#000000##FFFFFF
##122A561.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122F58
Deuteranopia (green-blind)
#032855
Tritanopia (blue-blind)
#00343B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #122a56;
/* rgb */ color: rgb(18, 42, 86);
/* oklch */ color: oklch(29.3% 0.085 261.3);
Tailwind
colors: {
  custom: {
    50: '#5b6386',
    500: '#122a56',
    950: '#000000',
  },
}
SCSS
$custom: #122a56;
$custom-light: #5b6386;
$custom-dark: #000000;
JSON
{
  "hex": "#122a56",
  "rgb": {
    "r": 18,
    "g": 42,
    "b": 86
  },
  "hsl": {
    "h": 218.824,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29339,
    "c": 0.08533,
    "h": 261.3
  },
  "luminance": 0.02456
}

Semantic roles & 50–950 ramp

primary
#122A56
secondary
#8F6F35
accent
#AD3FE8
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #122A56

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

Preview Lab → · Contrast checker → · Palette generator →

#122A56 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva