#122A5C#122A5C

#122A5C is a dark, moderate blue. Relative luminance 0.026; OKLCH L 29.8% C 0.095 H 262.8°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#122A5C
RGBrgb(18, 42, 92)
HSLhsl(221, 67%, 22%)
HSVhsv(221, 80%, 36%)
CMYKcmyk(80.4%, 54.3%, 0%, 63.9%)
CIE-LABlab(18.17, 10.86, -32.67)
CIE-LCHlch(18.17, 34.43, 288.39°)
OKLaboklab(29.83% -0.0119 -0.094)
OKLCHoklch(29.83% 0.095 262.8)
XYZxyz(3.0085, 2.5569, 10.4581)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122A5C #5C4412
analogous
#124F5C #122A5C #1F125C
triadic
#122A5C #5C122A #2A5C12
tetradic
#122A5C #5C124F #5C4412 #125C1F
square
#122A5C #5C124F #5C4412 #125C1F
split-complementary
#122A5C #5C1F12 #4F5C12
monochromatic
#050C1A #081329 #122A5C #1C418F #2659C2

Accessibility & contrast

On white

13.89
#122A5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#122A5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122A5C
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122A5C#FFFFFF#000000##FFFFFF
##122A5C1.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B305E
Deuteranopia (green-blind)
#00295B
Tritanopia (blue-blind)
#00363E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #122a5c;
/* rgb */ color: rgb(18, 42, 92);
/* oklch */ color: oklch(29.8% 0.095 262.8);
Tailwind
colors: {
  custom: {
    50: '#5c638a',
    500: '#122a5c',
    950: '#000000',
  },
}
SCSS
$custom: #122a5c;
$custom-light: #5c638a;
$custom-dark: #000000;
JSON
{
  "hex": "#122a5c",
  "rgb": {
    "r": 18,
    "g": 42,
    "b": 92
  },
  "hsl": {
    "h": 220.541,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29833,
    "c": 0.09472,
    "h": 262.8
  },
  "luminance": 0.02557
}

Semantic roles & 50–950 ramp

primary
#122A5C
secondary
#947635
accent
#B23EEA
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #122A5C

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

Preview Lab → · Contrast checker → · Palette generator →

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