#122A57#122A57

#122A57 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.4% C 0.087 H 261.6°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#122A57
RGBrgb(18, 42, 87)
HSLhsl(219, 66%, 21%)
HSVhsv(219, 79%, 34%)
CMYKcmyk(79.3%, 51.7%, 0%, 65.9%)
CIE-LABlab(17.79, 8.71, -29.96)
CIE-LCHlch(17.79, 31.20, 286.21°)
OKLaboklab(29.42% -0.0127 -0.086)
OKLCHoklch(29.42% 0.087 261.6)
XYZxyz(2.7971, 2.4723, 9.3448)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122A57 #573F12
analogous
#124C57 #122A57 #1C1257
triadic
#122A57 #57122A #2A5712
tetradic
#122A57 #57124C #573F12 #12571C
square
#122A57 #57124C #573F12 #12571C
split-complementary
#122A57 #571C12 #4C5712
monochromatic
#050C19 #081224 #122A57 #1C428A #275BBC

Accessibility & contrast

On white

14.05
#122A57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122A57
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122A57#FFFFFF#000000##FFFFFF
##122A571.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112F59
Deuteranopia (green-blind)
#012956
Tritanopia (blue-blind)
#00353C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #122a57;
/* rgb */ color: rgb(18, 42, 87);
/* oklch */ color: oklch(29.4% 0.087 261.6);
Tailwind
colors: {
  custom: {
    50: '#5b6387',
    500: '#122a57',
    950: '#000000',
  },
}
SCSS
$custom: #122a57;
$custom-light: #5b6387;
$custom-dark: #000000;
JSON
{
  "hex": "#122a57",
  "rgb": {
    "r": 18,
    "g": 42,
    "b": 87
  },
  "hsl": {
    "h": 219.13,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29419,
    "c": 0.0869,
    "h": 261.6
  },
  "luminance": 0.02473
}

Semantic roles & 50–950 ramp

primary
#122A57
secondary
#907035
accent
#AE3FE9
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #122A57

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

Preview Lab → · Contrast checker → · Palette generator →

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