#122C54#122C54

#122C54 is a dark, moderate blue. Relative luminance 0.026; OKLCH L 29.7% C 0.079 H 258.9°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#122C54
RGBrgb(18, 44, 84)
HSLhsl(216, 65%, 20%)
HSVhsv(216, 79%, 33%)
CMYKcmyk(78.6%, 47.6%, 0%, 67.1%)
CIE-LABlab(18.23, 5.94, -27.24)
CIE-LCHlch(18.23, 27.89, 282.31°)
OKLaboklab(29.69% -0.0153 -0.0779)
OKLCHoklch(29.69% 0.079 258.9)
XYZxyz(2.7498, 2.5698, 8.7369)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122C54 #543A12
analogous
#124D54 #122C54 #191254
triadic
#122C54 #54122C #2C5412
tetradic
#122C54 #54124D #543A12 #125419
square
#122C54 #54124D #543A12 #125419
split-complementary
#122C54 #541912 #4D5412
monochromatic
#050D19 #071222 #122C54 #1D4686 #2861B9

Accessibility & contrast

On white

13.87
#122C54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122C54
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122C54#FFFFFF#000000##FFFFFF
##122C541.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183056
Deuteranopia (green-blind)
#0C2A53
Tritanopia (blue-blind)
#00353B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #122c54;
/* rgb */ color: rgb(18, 44, 84);
/* oklch */ color: oklch(29.7% 0.079 258.9);
Tailwind
colors: {
  custom: {
    50: '#5a6484',
    500: '#122c54',
    950: '#000000',
  },
}
SCSS
$custom: #122c54;
$custom-light: #5a6484;
$custom-dark: #000000;
JSON
{
  "hex": "#122c54",
  "rgb": {
    "r": 18,
    "g": 44,
    "b": 84
  },
  "hsl": {
    "h": 216.364,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.29687,
    "c": 0.07945,
    "h": 258.9
  },
  "luminance": 0.0257
}

Semantic roles & 50–950 ramp

primary
#122C54
secondary
#8D6A35
accent
#A640E8
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #122C54

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

Preview Lab → · Contrast checker → · Palette generator →

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