#122A5A#122A5A

#122A5A is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.7% C 0.092 H 262.3°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#122A5A
RGBrgb(18, 42, 90)
HSLhsl(220, 67%, 21%)
HSVhsv(220, 80%, 35%)
CMYKcmyk(80%, 53.3%, 0%, 64.7%)
CIE-LABlab(18.02, 10.00, -31.59)
CIE-LCHlch(18.02, 33.14, 287.57°)
OKLaboklab(29.67% -0.0122 -0.0908)
OKLCHoklch(29.67% 0.092 262.3)
XYZxyz(2.9222, 2.5224, 10.0037)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122A5A #5A4212
analogous
#124E5A #122A5A #1E125A
triadic
#122A5A #5A122A #2A5A12
tetradic
#122A5A #5A124E #5A4212 #125A1E
square
#122A5A #5A124E #5A4212 #125A1E
split-complementary
#122A5A #5A1E12 #4E5A12
monochromatic
#050C1A #081227 #122A5A #1C428D #265AC0

Accessibility & contrast

On white

13.96
#122A5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#122A5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122A5A
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122A5A#FFFFFF#000000##FFFFFF
##122A5A1.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E305C
Deuteranopia (green-blind)
#002959
Tritanopia (blue-blind)
#00353D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #122a5a;
/* rgb */ color: rgb(18, 42, 90);
/* oklch */ color: oklch(29.7% 0.092 262.3);
Tailwind
colors: {
  custom: {
    50: '#5c6389',
    500: '#122a5a',
    950: '#000000',
  },
}
SCSS
$custom: #122a5a;
$custom-light: #5c6389;
$custom-dark: #000000;
JSON
{
  "hex": "#122a5a",
  "rgb": {
    "r": 18,
    "g": 42,
    "b": 90
  },
  "hsl": {
    "h": 220,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.29665,
    "c": 0.0916,
    "h": 262.3
  },
  "luminance": 0.02523
}

Semantic roles & 50–950 ramp

primary
#122A5A
secondary
#937335
accent
#B03EEA
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#04050B
muted
#79797C

Preview Lab

Preview with #122A5A

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

Preview Lab → · Contrast checker → · Palette generator →

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