#122A4F#122A4F

#122A4F is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.8% C 0.074 H 258.9°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#122A4F
RGBrgb(18, 42, 79)
HSLhsl(216, 63%, 19%)
HSVhsv(216, 77%, 31%)
CMYKcmyk(77.2%, 46.8%, 0%, 69%)
CIE-LABlab(17.22, 5.27, -25.49)
CIE-LCHlch(17.22, 26.03, 281.68°)
OKLaboklab(28.79% -0.0143 -0.0728)
OKLCHoklch(28.79% 0.074 258.9)
XYZxyz(2.4882, 2.3488, 7.7178)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122A4F #4F3712
analogous
#12494F #122A4F #18124F
triadic
#122A4F #4F122A #2A4F12
tetradic
#122A4F #4F1249 #4F3712 #124F18
square
#122A4F #4F1249 #4F3712 #124F18
split-complementary
#122A4F #4F1812 #494F12
monochromatic
#060D19 #07101D #122A4F #1D4581 #295FB3

Accessibility & contrast

On white

14.29
#122A4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#122A4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122A4F
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122A4F#FFFFFF#000000##FFFFFF
##122A4F1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182D50
Deuteranopia (green-blind)
#0E284E
Tritanopia (blue-blind)
#003338
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #122a4f;
/* rgb */ color: rgb(18, 42, 79);
/* oklch */ color: oklch(28.8% 0.074 258.9);
Tailwind
colors: {
  custom: {
    50: '#596380',
    500: '#122a4f',
    950: '#000000',
  },
}
SCSS
$custom: #122a4f;
$custom-light: #596380;
$custom-dark: #000000;
JSON
{
  "hex": "#122a4f",
  "rgb": {
    "r": 18,
    "g": 42,
    "b": 79
  },
  "hsl": {
    "h": 216.393,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.28794,
    "c": 0.07424,
    "h": 258.9
  },
  "luminance": 0.02349
}

Semantic roles & 50–950 ramp

primary
#122A4F
secondary
#886735
accent
#A542E6
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #122A4F

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

Preview Lab → · Contrast checker → · Palette generator →

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