#122A54#122A54

#122A54 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.2% C 0.082 H 260.7°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#122A54
RGBrgb(18, 42, 84)
HSLhsl(218, 65%, 20%)
HSVhsv(218, 79%, 33%)
CMYKcmyk(78.6%, 50%, 0%, 67.1%)
CIE-LABlab(17.57, 7.42, -28.30)
CIE-LCHlch(17.57, 29.26, 284.69°)
OKLaboklab(29.18% -0.0133 -0.0811)
OKLCHoklch(29.18% 0.082 260.7)
XYZxyz(2.6771, 2.4243, 8.7126)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122A54 #543C12
analogous
#124B54 #122A54 #1B1254
triadic
#122A54 #54122A #2A5412
tetradic
#122A54 #54124B #543C12 #12541B
square
#122A54 #54124B #543C12 #12541B
split-complementary
#122A54 #541B12 #4B5412
monochromatic
#050D19 #071122 #122A54 #1D4386 #285CB9

Accessibility & contrast

On white

14.14
#122A54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122A54
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122A54#FFFFFF#000000##FFFFFF
##122A541.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142E56
Deuteranopia (green-blind)
#062853
Tritanopia (blue-blind)
#00343A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #122a54;
/* rgb */ color: rgb(18, 42, 84);
/* oklch */ color: oklch(29.2% 0.082 260.7);
Tailwind
colors: {
  custom: {
    50: '#5a6384',
    500: '#122a54',
    950: '#000000',
  },
}
SCSS
$custom: #122a54;
$custom-light: #5a6384;
$custom-dark: #000000;
JSON
{
  "hex": "#122a54",
  "rgb": {
    "r": 18,
    "g": 42,
    "b": 84
  },
  "hsl": {
    "h": 218.182,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.2918,
    "c": 0.08217,
    "h": 260.7
  },
  "luminance": 0.02425
}

Semantic roles & 50–950 ramp

primary
#122A54
secondary
#8D6D35
accent
#AB40E8
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #122A54

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

Preview Lab → · Contrast checker → · Palette generator →

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